Hi all, I have a very simple but important query. When in AODV I try to execute the following statements:
void AODV::sendRequest(nsaddr_t dst) { // Allocate a RREQ packet Packet *p = Packet::alloc(); struct hdr_cmn *ch = HDR_CMN(p); struct hdr_ip *ih = HDR_IP(p); struct hdr_aodv_request *rq = HDR_AODV_REQUEST(p); aodv_rt_entry *rt = rtable.rt_lookup(dst); assert(rt); printf("\n AODV RREQ sent by node [%d] to node [%d] at time [%f] \n",index,ih->daddr(),rq->rq_timestamp); .............. ........... The value for time stamp fied is shown as zero, although according to me it should give the time when the packet was being sent. Can anyone tell me the reason behind this. Thanks in advance. regds Amita