Thanks Durgesh.... Is it possible to know which node is agent node while accessing nodes in ns2?
Means somehow we are able to identify....inside queue.cc.........in recv function when recv is for agent node. in simple words, For example we have 3 nodes in tcl script and inside queue.cc we want to control over packet received at destination node(agent node created through tcl script). Do you know how we can identify queue belongs to agent node created in tcl script? Thanks ________________________________ From: Durgesh Kshirsagar <durgeshpkshirsa...@gmail.com> To: itishi saxena <itish...@yahoo.com> Sent: Monday, 13 August 2012 3:51 PM Subject: Re: [ns] The results of your email commands Hello friend check out this link for a nice description of AODV protocol. http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf. There is a function as void Classifier::recv(Packet* p, Handler*h) { NsObject* node = find(p); if (node == NULL) { /* * XXX this should be "dropped" somehow. Right now, * these events aren't traced. */ Packet::free(p); return; } node->recv(p,h); } I think(not sure cause me too newbie) here the packet is received. All the best.