Bug 157 - IP layer tracing is unavailable in the new helper API
IP layer tracing is unavailable in the new helper API
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: samples
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-01 21:32 UTC by Rajib Bhattacharjea
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments
patch to InternetStackHelper implementing IP layer tracing (4.24 KB, patch)
2008-04-01 21:33 UTC, Rajib Bhattacharjea
Details | Diff
Update to previous patch for "static" semantics (4.45 KB, patch)
2008-04-02 12:51 UTC, Rajib Bhattacharjea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rajib Bhattacharjea 2008-04-01 21:32:25 UTC
And Mathieu mentioned he envisions the PcapTrace being worked out of our code at some point in favor of a helper.

The patch essentially copies the current PcapTrace functionality into InternetStackHelper, i.e. 

InternetStackHelper internet;
internet.EnablePcap("traceName");
Comment 1 Rajib Bhattacharjea 2008-04-01 21:33:14 UTC
Created attachment 121 [details]
patch to InternetStackHelper implementing IP layer tracing
Comment 2 Mathieu Lacage 2008-04-01 21:53:43 UTC
Looks awesome but, for consistency, EnablePcap should be static and, once you have done this, the tcp example script should be updated to use the non-member method syntax.
Comment 3 Rajib Bhattacharjea 2008-04-02 12:51:15 UTC
Created attachment 122 [details]
Update to previous patch for "static" semantics

Here is a slightly modified implementation with static function semantics instead of method semantics, i.e. InternetStackHelper::EnablePcap("tracefilename")
Comment 4 Mathieu Lacage 2008-04-02 12:58:36 UTC
looks good to me. feel free to apply as this looks like a trivial addition.
Comment 5 Rajib Bhattacharjea 2008-04-02 13:07:10 UTC
Pushed in ns-3-dev as:
2845:2398826af6b4