Remove some useless code

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-07-16 16:17:21 +01:00
parent c33568c079
commit a8d461f29e
2 changed files with 0 additions and 10 deletions

View File

@@ -119,11 +119,6 @@ ArpL3Protocol::Receive(Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t proto
{
NS_LOG_FUNCTION_NOARGS ();
if (packetType == NetDevice::PACKET_OTHERHOST)
{
return;
}
Ptr<ArpCache> cache = FindCache (device);
ArpHeader arp;
packet->RemoveHeader (arp);

View File

@@ -454,11 +454,6 @@ Ipv4L3Protocol::Receive( Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t pro
{
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;