[Ns-bugs] [Bug 280] New: trace helpers too inclusive

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Sun Aug 10 21:36:10 PDT 2008


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

           Summary: trace helpers too inclusive
           Product: ns-3
           Version: ns-3.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: helpers
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: tomh at tomh.org


When trace helpers (e.g. CsmaHelper::EnablePcap()) are called, they do not
check whether the trace path exists; i.e., whether there is actually a device
to trace of the appropriate type.  Empty tracefiles may be generated as a
result.  This could be a troublesome soft error because it may not be clear to
the user debugging a script whether the trace file is empty because packets are
not being sent or because the trace file itself is bogus.  

Some simple type checking on the devices when iterating through containers can
help to avoid this problem (e.g., see attached patch for
CsmaHelper::EnablePcap, but note that this problem also applies to WifiHelper
and PointToPointHelper).


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list