[ns] how to recognize destination node in aodv.cc

2012-12-28 Thread AmarNath Patra
Hello Everyone, If I add the following statement in the beginning of the code in the function, AODV::recv(Packet *p, Handler*), in aodv.cc : if(DATA_PACKET(ch->ptype())) { printf("\nNode: _%i _ recvd data packet at time: %.4lf", index, CURRENT_TIME); } Then it prints for all active nodes except

[ns] problem with prev_hop_

2013-02-04 Thread AmarNath Patra
Hi All, The field prev_hop_ of struct hdr_cmn in ns/common/packet.h should have the value of the forwarding node. Unfortunately, this always shows "0". Please help me in getting the actual forwarding node. (This query has been posted several times by different individuals. I am not able to get an

[ns] recv function not called in aodv for destination node

2013-02-06 Thread AmarNath Patra
Hello Everyone, If I add the following statement in the beginning of the code in the function, AODV::recv(Packet *p, Handler*), in aodv.cc : if(DATA_PACKET(ch->ptype())) { printf("\nNode: _%i _ recvd data packet at time: %.4lf", index, CURRENT_TIME); } Then it prints for all active nodes except

[ns] conflicting hello process in aodv rfc and aodv.cc

2013-02-07 Thread AmarNath Patra
Hello Everyone, In the existing AODV code, HELLO is disabled. I am able to enable it (by commenting '#ifndef AODV_LINK_LAYER_DETECTION' and '#endif' in aodv.cc). The problem is that after enabling, all the nodes in the network perform the hello process. But,according to the rfc3561, "*A node SHOU

[ns] enabling-disabling hello on the fly in aodv

2013-04-24 Thread AmarNath Patra
Hello everyone, The hello process is disabled in aodv.cc. To enable it we just need to comment out #ifndef AODV_LINK_LAYER_DETECTION (line number 63) and #endif // LINK LAYER DETECTION (line number 66) in aodv.cc. I want to enable the hello process in the beginning. In the case of *local repair