---------- Forwarded message ---------- From: Pathik Shah <pathikmsha...@gmail.com> Date: Fri, Jan 20, 2012 at 10:51 AM Subject: Re: [ns] the address of sending RREP To: ziralda <kader.el...@gmail.com> Cc: ns-users@isi.edu
Hi there, in recvReply function, *ih->saddr()* will give node id of RREP originator (ultimate source of RREP) *ih->daddr()* will give id of node to which this RREP is to be destined (ultimate destination of RREP) and *rp->rp_src* will give id of node from which you have received this RREP *Please note* that it is obvious to have same values of ih->saddr() and rp->rp_src if you are a neighbor of RREP originator. hope it helps you. I would like to have your acknowledgement if my information lets you solve your problem. Based on that, a generic code (showing such node IDs while debugging) can be published. Good Luck... On Thu, Jan 19, 2012 at 11:54 PM, ziralda <kader.el...@gmail.com> wrote: > > > hello ns-users > > Please when a node X send a RREP to node Y, in the recvReply function, how > can i recuperate the address of the node sending RREP > > please answer me i really need it > > Many thanks in advance > -- > View this message in context: > http://old.nabble.com/the-address-of-sending-RREP-tp33169782p33169782.html > Sent from the ns-users mailing list archive at Nabble.com. > > -- With kind regards... Pathik Shah -- With kind regards... Pathik Shah