Hello , I am using NS2 simulator. Right now i am working on AODV protocol. My scenario is a simple one with 3 nodes. What i want is to display the each node id on command line to understand the sequence of the packets (RREQ, RREP and RERR) generation when i run the command "ns myfile.tcl" on command line.
The IP address of a node is declared as "nsaddr_t index;" in aodv.h. what i have done is that in aodv.cc , i have "cout<<index; " in the following function. void 01042 <http://rp.lip6.fr/ns-doc/ns226-doc/html/classAODV.htm#AODVb18> AODV::sendRequest <http://rp.lip6.fr/ns-doc/ns226-doc/html/classAODV.htm#AODVb18>(nsaddr_t dst) After that i have recompiled ns2. When i run the simulation there is not output on the command line. Thanks in Advance. Shoaib <https://sites.google.com/site/shoaibsal/>
