a packet socket

This commit is contained in:
Mathieu Lacage committed 2007-08-01 09:02:03 +02:00
1 parent 46fddad18a
commit a11316060c
7 files changed
+584

No files matched your search

+12
View File
@@ -35,6 +35,18 @@ PacketSocketAddress::SetDevice (uint32_t index)
m_device = index;
}
void
PacketSocketAddress::SetDevice (Ptr<NetDevice> device)
{
if (device == 0)
{
m_device = 0;
}
else
{
m_device = device->GetIfIndex ();
}
}
void
PacketSocketAddress::SetPhysicalAddress (const Address address)
{
m_address = address;