Skip to contentSkip to conversation

Timestamping in nfqueue

DISCUSSION nowhere 3 participants 4 messages May 13, 2011

lore
Share & tools
lore

nowhere

author
#0 lore raw

Hello,

What is the purpose of nfq_get_timestamp() in libnfnetlink_queue if skbs, entering nfnetlink_queue, are not timestamped?

#1 lore raw

Hello,

Quoted 4 lines · nowhere

Hello,

What is the purpose of nfq_get_timestamp() in libnfnetlink_queue if skbs, entering nfnetlink_queue, are not timestamped?

If I remember correctly, skb are timestamped when catch in the FORWARD chain. This is not the case in some other chains.

BR,
--
Eric Leblond

author
#2 lore raw

В Птн, 13/05/2011 в 16:43 +0200, Eric Leblond пишет:

Quoted 10 lines

Hello,

Quoted 4 lines · nowhere

Hello,

What is the purpose of nfq_get_timestamp() in libnfnetlink_queue if skbs, entering nfnetlink_queue, are not timestamped?

If I remember correctly, skb are timestamped when catch in the FORWARD chain. This is not the case in some other chains.

Thanks for the tip. Looks like timestamping happens for forwarded frames only.

Quoted 5 lines

BR,
--
Eric Leblond

#3 lore raw
Quoted 6 lines · Nikolay S.

В Птн, 13/05/2011 в 16:43 +0200, Eric Leblond пишет:

Quoted 5 lines

Hello,

Quoted 2 lines · nowhere

Hello,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

What is the purpose of nfq_get_timestamp() in libnfnetlink_queue if skbs, entering nfnetlink_queue, are not timestamped?

If I remember correctly, skb are timestamped when catch in the FORWARD chain. This is not the case in some other chains.

Thanks for the tip. Looks like timestamping happens for forwarded frames only.

I guess you can force timestamping by feeding the packet(s) through -m time in the ruleset. Doing so would be a hack, though probably a working one :)