Fixed removing tag when pass packet to upper layer

This commit is contained in:
Kirill Andreev
2009-06-10 17:33:12 +04:00
parent d8b0835ea6
commit 11c6653265

View File

@@ -89,8 +89,10 @@ MeshPointDevice::ReceiveFromDevice (Ptr<NetDevice> incomingPort, Ptr<const Packe
m_promiscRxCallback (this, packet, protocol, src, dst, packetType);
if(dst48.IsGroup ())
{
m_rxCallback (this, packet, protocol, src);
Forward (incomingPort, packet->Copy (), protocol, src48, dst48);
Ptr<Packet> packet_copy = packet->Copy ();
Forward (incomingPort, packet_copy, protocol, src48, dst48);
packet_copy->RemoveAllPacketTags ();
m_rxCallback (this, packet_copy, protocol, src);
return;
}
if(dst48 == m_address)