Hi, there,
I found that the ts is always set to 0 if the packet recv by a zc driver.
For example, in zcount.c:
if (buffer->ts.tv_nsec)
printf("[%u.%u] [hash=%08X] ", buffer->ts.tv_sec, buffer->ts.tv_nsec,
buffer->hash);
ts.tv_nsec is always set to 0 if I open ZC:p1p1.
So, the question is, how can I get the timestamp if I cannot get it from
buffer->ts?
Thanks,
Wang
I found that the ts is always set to 0 if the packet recv by a zc driver.
For example, in zcount.c:
if (buffer->ts.tv_nsec)
printf("[%u.%u] [hash=%08X] ", buffer->ts.tv_sec, buffer->ts.tv_nsec,
buffer->hash);
ts.tv_nsec is always set to 0 if I open ZC:p1p1.
So, the question is, how can I get the timestamp if I cannot get it from
buffer->ts?
Thanks,
Wang