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 <schara...@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