make sure the Rx trace event also gets the llc header to be symetric with the tx event.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 19 Mar 2008 10:30:59 -0700
changeset 2649 e7c7618c50a2
parent 2648 736213ce179d
child 2650 3de4cacb8981
make sure the Rx trace event also gets the llc header to be symetric with the tx event.
src/devices/wifi/wifi-net-device.cc
--- a/src/devices/wifi/wifi-net-device.cc	Mon Mar 17 17:47:45 2008 -0700
+++ b/src/devices/wifi/wifi-net-device.cc	Wed Mar 19 10:30:59 2008 -0700
@@ -302,10 +302,10 @@
 void
 WifiNetDevice::ForwardUp (Ptr<Packet> packet, const Mac48Address &from)
 {
+  m_rxLogger (packet, from);
   LlcSnapHeader llc;
   packet->RemoveHeader (llc);
   m_forwardUp (this, packet, llc.GetType (), from);
-  m_rxLogger (packet, from);
 }
 
 void