Re: Trouble with nfq_get_timestamp

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

 



Hi,

Le dimanche 26 avril 2009 à 18:43 +0200, Kristian Evensen a écrit :
> Hello,
> 
> I am currently writing a small user space application where I need the
> timestamp of the packets. In the callback-function, I use
> nfq_get_timestamp and  provide it with the pointer to a timeval-struct
> and the nfq_data sent to the callback function. However, the function
> always returns -1 and failes. The get_id() and so forth works
> perfectly, so I am wondering if anybody has any hints or knows how to
> solve this?

Are your packet coming from localhost ? It I remember correctly
timestamp is only setup for forwarded (or input) packets.

BR,
-- 
Eric Leblond <eleblond@xxxxxx>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
EdenWall: http://www.edenwall.com/

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux