Getting packet timestamps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

is there a libmnl equivalent of nfq_get_timestamp()?  I found I can call this:

struct nfqnl_msg_packet_timestamp* ts = mnl_attr_get_payload(attr[NFQA_TIMESTAMP]);

and then use be64toh().  Is that the way to do it?


BTW, I never got an NFQA_TIMESTAMP while testing.  Is it at all worth trying to check that value rather than just calling gettimeofday()?

TIA
Ale




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux