On Thu, Aug 17, 2006 at 05:37:15PM +0300, John Que ([EMAIL PROTECTED]) wrote:
> Hello,
> I am using NF_HOOKS (a "PRE_ROUTING" hook).
> When I try to print the time stamps (sec and usec) of skb packets
> which I recieve
> in the hook callback I get 0. Other skb fileds are correct.
> According to my understanding, the time stamp should be updated
> when the packet is received. Isn't it so ? Any idea why am I getting
> "0" for tstamp fields (tstamp is a field in sk_buff and is  an intance
> of skb_timeval).

Timestamps are disabled by default, if you have sockets which enable
SO_TIMESTAMP or netfilter queue target and other agents which can enable
it, you will see updated values in skb->tstamp.

-- 
        Evgeniy Polyakov
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to