Skip to content

How to get Timestamp values? #15

Answered by florianl
bharnden asked this question in Q&A
Discussion options

You must be logged in to vote

To have a timestamp in the nf_queue message two conditions [0] are required:

  • The hook that generates the nf_queue message has to be NF_INET_PRE_ROUTING, NF_INET_LOCAL_IN or NF_INET_FORWARD
  • In the sk_buff the field tstamp needs to be set

[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/netfilter/nfnetlink_queue.c#n583

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by florianl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants