fix bug preventing the sending of packets to a local IP address (bug 632)
This commit is contained in:
1 parent
1817b596db
commit
fe614e6e90
1 file changed
+1
-1
@@ -199,7 +199,7 @@ Ipv4Interface::Send (Ptr<Packet> p, Ipv4Address dest)
|
||||
{
|
||||
Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> ();
|
||||
|
||||
ipv4->Receive (0, p, Ipv4L3Protocol::PROT_NUMBER,
|
||||
ipv4->Receive (m_device, p, Ipv4L3Protocol::PROT_NUMBER,
|
||||
m_device->GetBroadcast (),
|
||||
m_device->GetBroadcast (),
|
||||
NetDevice::PACKET_HOST // note: linux uses PACKET_LOOPBACK here
|
||||
|
||||
Reference in new issue
Block a user