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

2013-02-07 Thread Saravanan Kandasamy
Amar, Correction on Line #6, 6. In case you like to know if a destination node received a packet, you can do so by comparing a packet's destination ip address with the node_id of a node receiving the packet ***at MAC layer*** rgds Saravanan K On Thu, Feb 7, 2013 at 2:19 PM, Saravanan Kandasa

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

2013-02-07 Thread Saravanan Kandasamy
Dear Amar, I think you have confused with between mac::recv() and aodv::recv() 1. mac::recv() able to listen every packet in a channel as long as it is above CSThresh and decode a packet if it is above RXThresh. 2.This is not the same for aodv::recv(), you would need to understand, how a)AODV p

[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