fix bug preventing the sending of packets to a local IP address (bug 632)
authorTom Henderson <tomh@tomh.org>
Wed Jul 08 21:45:23 2009 -0700 (7 months ago)
changeset 46957defe7a99e9c
parent 4694 6dc56539a891
child 4696 45d880dbe0f8
fix bug preventing the sending of packets to a local IP address (bug 632)
src/internet-stack/ipv4-interface.cc
     1.1 --- a/src/internet-stack/ipv4-interface.cc	Wed Jul 08 10:47:22 2009 -0700
     1.2 +++ b/src/internet-stack/ipv4-interface.cc	Wed Jul 08 21:45:23 2009 -0700
     1.3 @@ -199,7 +199,7 @@
     1.4          {
     1.5            Ptr<Ipv4L3Protocol> ipv4 = m_node->GetObject<Ipv4L3Protocol> ();
     1.6          
     1.7 -          ipv4->Receive (0, p, Ipv4L3Protocol::PROT_NUMBER, 
     1.8 +          ipv4->Receive (m_device, p, Ipv4L3Protocol::PROT_NUMBER, 
     1.9                           m_device->GetBroadcast (),
    1.10                           m_device->GetBroadcast (),
    1.11                           NetDevice::PACKET_HOST // note: linux uses PACKET_LOOPBACK here