Re: [ns] Help-Neighbor table
I think i can help you 1) in file aodv_rtable.h: you can add FLAG field to neighbor table: class AODV_Neighbor { //some code... // double nb_expire; // ALLOWED_HELLO_LOSS * HELLO_INTERVAL booleanFLAG; //New field: "FLAG" }; 2) in recvRequest() function (aodv.cc): puts some code like: AODV::recvRequest(Packet *p){ //some code ... //. AODV_Neighbor *nb; nb = nb_lookup(ch->prev_hop_); if(nb != 0) { nb->FLAG = 1; } //. } -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/Help-Neighbor-table-tp27086p27088.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] Help-Neighbor table
Hi, I am trying to implement detection of RREQ packet dropper. For that, I need to store all the neighbors of each node in the network. I have found that we got a neighbor table already in AODV. I am able to print it. But what I want is, to store that table along with a new field in it called "FLAG" . Whenever a node 'A' receives a route request or RREP from a node 'B', B must update in its neighbor table , the flag corresponding to 'A' as "1". For this, how can I invoke the existing neighbor table at recvRequest() function in AODV and how can I add a new field to that neighbor table. If you have any suggestion about this, please help me. It was really urgent for my project. Regards, Sony
[ns] help-neighbor table
Hi everyone, I am trying to implement detection of RREQ packet dropper. For that, I need to store all the neighbors of each node in the network. I have found that we got a neighbor table already in AODV. I am able to print it. But what I want is, to store that table along with a new field in it called "FLAG" . Whenever a node 'A' receives a route request or RREP from a node 'B', B must update in its neighbor table , the flag corresponding to 'A' as "1". For this, how can I retrieve from the existing neighbor table and how can I add a new field to that neighbor table. If anyone knows about this, please help me. It was really urgent for my project. Regards, Sony