[ns] Capturing Packets

Mubashir Rehmani mshrehmani at gmail.com
Sun Mar 1 22:39:57 PST 2009


Hi Sri Charan,

Yes it is possible. You need to work in the recv() packet function and dump
the contents of all the packet in the trace file.

Regards

Mubashir Husain Rehmani
ASAP/INRIA and LIP6, UPMC
www-rp.lip6.fr/~rehmani <http://www-rp.lip6.fr/%7Erehmani>
http://www.irisa.fr/asap/Members/mrehmani/Mubashir


2009/3/2 Sri Charan <scharan20 at gmail.com>

>
> Hi,
>
> I need to capture each packet arriving at each node in the network (in
> order
> to calculate a hash on the *whole* packet, not just its header). Another
> way
> to ask this is that I need to sniff the packet as it arrives at each node
> and save/dump it to a file. Is this possible in NS2? If yes, how?
>
> - scharan.
>



-- 
Mubashir Husain Rehmani


More information about the Ns-users mailing list