[Ns-bugs] [Bug 505] New: WifiNetDevice::Rx trace is also called for overheard frames

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Thu Feb 19 04:18:10 PST 2009


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

           Summary: WifiNetDevice::Rx trace is also called for overheard
                    frames
           Product: ns-3
           Version: pre-release
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: wifi
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: francesco.malandrino at gmail.com
                CC: francesco.malandrino at gmail.com
   Estimated Hours: 0.0


Created an attachment (id=382)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=382)
Change the position of rxLogger

As discussed in:
http://groups.google.com/group/ns-3-users/browse_thread/thread/b3a5c0863a19d556,
the Rx trace of WifiNetDevice is invoked even when the L2 layer just _sees_ a
frame, e.g. a frame directed to some other host. This happens even when the
promiscuous mode is disabled.

I would expect the Rx trace source to be invoked only when the L2 receives a
frame that is to be forwarded to upper layers, i.e. it is either broadcast,
multicast or unicast and directed to the current host.
The attached patch would make the actual behavior of the Rx trace closer to its
name.

Additionally, a new trace (say, "FrameSeen") could be added in the position
where currently m_rxLogger is called.


-- 
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