Hi Wang the ZC library does not compute the timestamp by default for max performance, please add the PF_RING_ZC_DEVICE_SW_TIMESTAMP flag to pfring_zc_open_device()
Regards Alfredo > On 8 Jan 2020, at 11:04, Wang <[email protected]> wrote: > > 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 > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
