Re: time stamps of skb packets in NF_HOOKS callbacks

2006-08-18 Thread Evgeniy Polyakov
On Fri, Aug 18, 2006 at 08:43:08AM +0300, John Que ([EMAIL PROTECTED]) wrote: > Following your answer I tried adding a call to net_enable_timestamp() in > a module I wrote which use NF_HOOKS. > This is what is done , for example, in ipq_rcv_skb(struct sk_buff *skb) > in linux-2.6.14 in net/ipv4/net

Re: time stamps of skb packets in NF_HOOKS callbacks

2006-08-17 Thread John Que
Evgeniy, Sorry ! ; last sentence in my reply was chopped so here is my message again with this last sentence (complete this time) Thnks, I appreciate your (quick) answer; Following your answer I tried adding a call to net_enable_timestamp() in a module I wrote which use NF_HOOKS. This is what i

Re: time stamps of skb packets in NF_HOOKS callbacks

2006-08-17 Thread John Que
Evgeniy, Thnks, I appreciate your (quick) answer; Following your answer I tried adding a call to net_enable_timestamp() in a module I wrote which use NF_HOOKS. This is what is done , for example, in ipq_rcv_skb(struct sk_buff *skb) in linux-2.6.14 in net/ipv4/netfilter/ip_queue.c. After doing so

Re: time stamps of skb packets in NF_HOOKS callbacks

2006-08-17 Thread Evgeniy Polyakov
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

time stamps of skb packets in NF_HOOKS callbacks

2006-08-17 Thread John Que
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