All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Leblond <eleblond@inl.fr>
To: Kristian Evensen <kristian.evensen@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Trouble with nfq_get_timestamp
Date: Sun, 26 Apr 2009 19:06:58 +0200	[thread overview]
Message-ID: <1240765618.6955.1.camel@ice-age> (raw)
In-Reply-To: <17e3a8f80904260943j5ff13304paa523fe88db4344a@mail.gmail.com>

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@inl.fr>
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-04-26 17:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26 16:43 Trouble with nfq_get_timestamp Kristian Evensen
2009-04-26 17:06 ` Eric Leblond [this message]
2009-04-26 17:12   ` Kristian Evensen
2009-04-26 17:19     ` Kristian Evensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1240765618.6955.1.camel@ice-age \
    --to=eleblond@inl.fr \
    --cc=kristian.evensen@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.