diff -r 125101b3e24d -r b40ce56e0247 src/devices/wifi/wifi-mac.cc --- 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 packet) +{ + m_macPromiscRxTrace (packet); +} + +void WifiMac::NotifyRxDrop (Ptr packet) { m_macRxDropTrace (packet);