[Ns-developers] Bug #622, fiendly names for pcap files
Faker Moatamri
faker.moatamri at sophia.inria.fr
Tue Nov 17 07:40:22 PST 2009
Hi all,
I updated the patch already submitted for this bug, you can find it
attached. Here is a reminder of the patch behavior:
'Attached is a patch that gives out more meaningful names for trace files.
Instead of filename-nodeid-deviceid, which can get quite cumbersome if you have
lots of devices, this one uses format filename-nodename-devname if they have
been given via Names::Add facility.
For Nodes, simply use
Ptr<Node> TestBoxNode;
Names::Add("TestBox", TestBoxNode)
For devices, you need to specify the name belongs to specific node (so you can
use e.g. "eth0" for multiple nodes), like so:
Ptr<NetDevice> TestDev = TestBoxNode->GetDevice(0);
Names::Add(TestBoxNode, "eth0", TestDev);
End result what you'll see when you use e.g.
PointToPointHelper::EnablePcapAll ("testtrace");
will be that instead of testrace-0-0.pcap, you get testrace-TestBox-eth0.pcap
...which I think is quite useful addition.'
It already got +1 from Tom, I will checkin the patch if no one has any
problem with this.
Thanks
Faker Moatamri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: friendlyNames.patch
Type: text/x-patch
Size: 2051 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20091117/7b93d4d1/friendlyNames.bin
More information about the Ns-developers
mailing list