|
Bugzilla – Full Text Bug Listing |
| Summary: | EnableAsciiIpv4All tracing does not show transmitted and received packets | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | SANTOSH GOGI <santoshag> |
| Component: | internet | Assignee: | George Riley <riley> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | adrian.sw.tam, ns-bugs |
| Priority: | P5 | ||
| Version: | ns-3.12 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
first.cc example tutorial script with Ipv4 Ascii Tracing enabled
Patch to fix the issue Output of the provided first.cc (as in attachment 1271) |
||
This bug arises from internet-stack-helper.cc, which hooks a handler to only m_dropTrace, but not m_txTrace and m_rxTrace. Fix shall be easy. Created attachment 1282 [details]
Patch to fix the issue
Created attachment 1283 [details] Output of the provided first.cc (as in attachment 1271 [details]) |
Created attachment 1271 [details] first.cc example tutorial script with Ipv4 Ascii Tracing enabled Overview: ascii trace file generated using EnableAsciiIpv4 with InternetStackHelper does not show transmitted or received packets but shows dropped packets only if any. Steps to Reproduce: As shown in the attachment script, one can generate ascii tracing for Ipv4 interfaces with InternetStackHelper object. InternetStackHelper stack; ..... ..... AsciiTraceHelper ascii; Ptr<OutputStreamWrapper> stream = ascii.CreateFileStream("ipv4_trace.tr"); stack.EnableAsciiIpv4All(stream); Actual Results: Trace file shows only dropped packet(marked as 'd') if any Expected Results: SInce the simulation also had transmitted and received packets, they should have been present in the trace file. Build Date & Platform: Build Nov-16-2011 on Ubuntu OS 11 Additional Builds and Platforms: Seen on Fedora Additional Information: Tested with first.cc example tutorial file present in ns-3.12 build. The trace file did not had anything since there are no dropped packets in point-to-point link but the important point is, it did not even have transmitted and received packets.