[Ns-bugs] [Bug 405] wifi log messages improvements
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Mon Nov 10 10:31:57 PST 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=405
Tom Henderson <tomh at tomh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomh at tomh.org
--- Comment #1 from Tom Henderson <tomh at tomh.org> 2008-11-10 13:31:57 EDT ---
(In reply to comment #0)
> Created an attachment (id=294)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=294) [details]
> patch
>
> Uses NS_LOG_APPEND_CONTEXT to add node and netdevice index. This may not apply
> to ns-3-dev directly, as I am working in another branch, but you get the idea.
> Logs become something like this:
>
> 0.000734987s [node 2 dev 0] MacLow:ReceiveOk(0x2d7b250, ns3::WifiMacHeader
> (CTL_ACK Duration/ID=0us, RA=d0:00:00:00:00:03) ns3::WifiMacTrailer (),
> 9.35955, wimax, 0)
> 0.000734987s [node 2 dev 0] MacLow:ReceiveOk(): d0:00:00:00:00:03
> duration/id=0ns
> 0.000734987s [node 2 dev 0] MacLow:ReceiveOk(): hdr.IsCts (): 0; hdr.GetAddr1
> (): d0:00:00:00:00:03; m_self: d0:00:00:00:00:03; m_ctsTimeoutEvent.IsRunning
> (): 0; m_currentPacket: 0
> 0.000734987s [node 2 dev 0] MacLow:ReceiveOk(): d0:00:00:00:00:03 rx drop
> CTL_ACK
>
+1 from me. We need to add similar to other devices, and to the internet
stack.
By the way, I've never succeeded in getting NS_LOG output to print the time out
in units of seconds rather than ns. What setting or environment variable is
needed to enable that?
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list