src/devices/wifi/wifi-mac.cc
changeset 4272 b40ce56e0247
parent 4264 9d2e96c4e6e4
child 4509 b2654e0f071d
--- a/src/devices/wifi/wifi-mac.cc	Wed Mar 18 11:19:18 2009 -0400
+++ b/src/devices/wifi/wifi-mac.cc	Wed Mar 18 23:36:37 2009 -0700
@@ -124,9 +124,13 @@
     .AddTraceSource ("MacTxDrop", 
                      "A packet has been dropped in the MAC layer before being queued for transmission.",
                      MakeTraceSourceAccessor (&WifiMac::m_macTxDropTrace))
+    .AddTraceSource ("MacPromiscRx", 
+                     "A packet has been received by this device, has been passed up from the physical layer "
+                     "and is being forwarded up the local protocol stack.  This is a promiscuous trace,",
+                     MakeTraceSourceAccessor (&WifiMac::m_macPromiscRxTrace))
     .AddTraceSource ("MacRx", 
                      "A packet has been received by this device, has been passed up from the physical layer "
-                     "and is being forwarded up the local protocol stack.",
+                     "and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,",
                      MakeTraceSourceAccessor (&WifiMac::m_macRxTrace))
     .AddTraceSource ("MacRxDrop", 
                      "A packet has been dropped in the MAC layer after it has been passed up from the physical "
@@ -185,6 +189,12 @@
 }
 
 void 
+WifiMac::NotifyPromiscRx (Ptr<const Packet> packet) 
+{
+  m_macPromiscRxTrace (packet);
+}
+
+void 
 WifiMac::NotifyRxDrop (Ptr<const Packet> packet) 
 {
   m_macRxDropTrace (packet);