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 for the destination. Why is it
happening?
If not in this function/file, then where can I check whether the
destination received a data packet?
I just tried to implement the NULL agent's recv function in c++ source
code, and added the above statement in it.
Here the print function gets executed for the case of destination node. Is
this correct?
Can't I recognize the/a destination node in the aodv,cc file itself?
-amar