src/internet-stack/ipv4-l3-protocol.cc
changeset 3448 0bd851bb1225
parent 3260 8c0ab08144e6
child 3461 b38ddf78470a
--- a/src/internet-stack/ipv4-l3-protocol.cc	Mon Jul 07 10:37:09 2008 +0100
+++ b/src/internet-stack/ipv4-l3-protocol.cc	Mon Jul 07 12:18:05 2008 +0100
@@ -449,10 +449,16 @@
 }  
 
 void 
-Ipv4L3Protocol::Receive( Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t protocol, const Address &from)
+Ipv4L3Protocol::Receive( Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t protocol, const Address &from,
+                         const Address &to, NetDevice::PacketType packetType)
 {
   NS_LOG_FUNCTION (this << &device << packet << protocol <<  from);
 
+  if (packetType == NetDevice::PACKET_OTHERHOST)
+    {
+      return;
+    }
+
   NS_LOG_LOGIC ("Packet from " << from << " received on node " << m_node->GetId ());
 
   uint32_t index = 0;