Remove some useless code
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 16 Jul 2008 16:17:21 +0100
changeset 3461 b38ddf78470a
parent 3460 99698bc858e8
child 3462 93e991211868
Remove some useless code
src/internet-stack/arp-l3-protocol.cc
src/internet-stack/ipv4-l3-protocol.cc
--- a/src/internet-stack/arp-l3-protocol.cc	Wed Jul 16 16:06:50 2008 +0100
+++ b/src/internet-stack/arp-l3-protocol.cc	Wed Jul 16 16:17:21 2008 +0100
@@ -119,11 +119,6 @@
 {
   NS_LOG_FUNCTION_NOARGS ();
 
-  if (packetType == NetDevice::PACKET_OTHERHOST)
-    {
-      return;
-    }
-
   Ptr<ArpCache> cache = FindCache (device);
   ArpHeader arp;
   packet->RemoveHeader (arp);
--- a/src/internet-stack/ipv4-l3-protocol.cc	Wed Jul 16 16:06:50 2008 +0100
+++ b/src/internet-stack/ipv4-l3-protocol.cc	Wed Jul 16 16:17:21 2008 +0100
@@ -454,11 +454,6 @@
 {
   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;