Reg StoreTimestamp element
sandeep <[email protected]>
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <CAKE=LV3L-i+1mexnj=BPZQTdY1LT0_JguzRRB1Wh8P3rQhvFQQ@mail.gmail.com> |
Hi,
I am using StoreTimestamp element to put a timestamp at the tail of a
packet. Can anyone tell me how to extract the timestamp value out of it on
the receive end or from the dump file.
-----
My analysis is as follows:
The source code which does this is.
memcpy(q->data() + offset, &q->timestamp_anno(), 8);
I looks like pointer to Timestamp is written during this memcpy operation.
I managed to print the timestamp string using
printf("Timestamp is %s\n",
((&q->timestamp_anno())->unparse()).mutable_data());
-------
Kind Regards,
Sandeep,
PhD Student,
CTVR <http://ctvr.ie/> - Trinity College Dublin