Thanks! I have the following clarification:
Do I have to reimplement recv() function for each protocol that I need to capture the packets for? Can u provide some examples or links to some examples on how this should be done? - scharan. Mubashir Rehmani wrote: > > > 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 <[email protected]> > >> >> 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 > > -- View this message in context: http://www.nabble.com/Capturing-Packets-tp22281401p22283043.html Sent from the ns-users mailing list archive at Nabble.com.
