Remove some useless code
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user