Bugzilla – Bug 683
Helper methods for pcap tracing with explicit filenames
Last modified: 2010-02-26 13:32:16 UTC
Created attachment 595 [details] New pcap helpers This was sent to the ML on 31/8, but went unnoticed, so I post it as a wishlist bug. I've also just read that ns-3 is on maintenance phase, but I'd like to ask its inclusion to be considered. ------------- For a project I'm working on, I need to set up pcap tracing while being able to define exactly which filename the traces will have. Now, the helper methods unconditionally append the node and device ids and the ".pcap" suffix. I've created a patch that defines a new method EnablePcapExplicit with exactly the same arguments as EnablePcap, but doesn't append anything to the filename argument. ATM, I'd just implemented overloaded methods for the nodeid+deviceid and device ptr versions, but if you think it's worthwhile, I can add equivalent methods for the other signatures of EnablePcap. I've also included the updated bindings for this. I'd like to ask you to consider merging this functionality. Maybe you'd prefer a different method name, or some different organisation. What I'd like to avoid is any diversion from the ns-3-dev main tree. Thanks, Martín. PS: please note that the current revision of ns-3-dev has some of the bindings out of sync. When I run --python-scan, these files are modified: M bindings/python/ns3_module_core.py M bindings/python/ns3_module_internet_stack.py M bindings/python/ns3_module_wifi.py
Created attachment 596 [details] Python bindings for the new helpers
I am addressing this along with 682. I have a patch that I am not entirely satisfied with. I will address this after I complete some other work -- before code complete ns-3.7
Will push after 3.7
changeset 94b282f335d2