[Ns-bugs] [Bug 805] WifiPhy PhyTxEnd trace not working

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Sat Feb 20 11:10:58 PST 2010


http://www.nsnam.org/bugzilla/show_bug.cgi?id=805


Craig Dowell <craigdo at ee.washington.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |craigdo at ee.washington.edu




--- Comment #1 from Craig Dowell <craigdo at ee.washington.edu>  2010-02-20 14:10:58 EDT ---
This is as designed.

Not all of the standard trace sources are required to have implementations that
work.  They are standard trace names that a model author can choose to
implement.

For example, see csma-net-device.cc:

#if 0
    // Not currently implemented in this device
    .AddTraceSource ("PhyRxBegin",
                     "Trace source indicating a packet has begun being received
by the device",
                     MakeTraceSourceAccessor
(&CsmaNetDevice::m_phyRxBeginTrace))
#endif

However, if the device does not implement a source, it should probably remove
the code or do the same as the csma device and ifdef them out with a comment. 
That way the trace sources don't misleadingly end up in the documentation.

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list