From 11c6653265086cd1cd2c3950259c930a77b34962 Mon Sep 17 00:00:00 2001 From: Kirill Andreev Date: Wed, 10 Jun 2009 17:33:12 +0400 Subject: [PATCH] Fixed removing tag when pass packet to upper layer --- src/devices/mesh/mesh-point-device.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/devices/mesh/mesh-point-device.cc b/src/devices/mesh/mesh-point-device.cc index 2526f92d7..1177661d6 100644 --- a/src/devices/mesh/mesh-point-device.cc +++ b/src/devices/mesh/mesh-point-device.cc @@ -89,8 +89,10 @@ MeshPointDevice::ReceiveFromDevice (Ptr incomingPort, PtrCopy (), protocol, src48, dst48); + Ptr 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)