From: "Khoa Nguyen" <khoa.coffee@gmail.com>
To: Eric Leblond <eric@inl.fr>
Cc: netfilter@vger.kernel.org
Subject: Re: libipq and destination IP address
Date: Fri, 19 Oct 2007 09:29:09 -0400 [thread overview]
Message-ID: <3d00e6dc0710190629s37aad5c3jed14808287dc2cd8@mail.gmail.com> (raw)
In-Reply-To: <1192786783.29962.126.camel@khasse.inl.fr>
Hi,
Thanks for your response. Actually, the problem is inet_ntoa()
function -- I should have printed out the IP address right away before
calling the function again
Thanks,
Khoa
On 10/19/07, Eric Leblond <eric@inl.fr> wrote:
> Hi,
>
> Le mardi 16 octobre 2007 à 10:44 -0400, Khoa Nguyen a écrit :
> > Hi,
> >
> > I am writing a small libipq program to extract packet info. I "queued"
> > all packets in the OUTPUT chain. It looks like the packet has the same
> > source and destination packet ( = host interface address). Why is
> > that? Is there a way in libipq to extract the REAL destination
> > address?
>
> First of all: switch to libnetfilter_queue
>
> For your question, libipq sends to userspace the whole content of the
> packet. Thus there is no potential problem of address rewriting. You can
> have a look at the following code extract from NuFW:
> http://docs.nufw.org/doxygen/trunk/html/packetsrv_8c-source.html#l00292
>
> BR,
> --
> Éric Leblond, eleblond@inl.fr
> Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
> INL, http://www.inl.fr
>
>
prev parent reply other threads:[~2007-10-19 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.21644.1192545951.25258.netfilter@lists.netfilter.org>
2007-10-16 14:44 ` libipq and destination IP address Khoa Nguyen
2007-10-19 9:39 ` Eric Leblond
2007-10-19 13:29 ` Khoa Nguyen [this message]
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=3d00e6dc0710190629s37aad5c3jed14808287dc2cd8@mail.gmail.com \
--to=khoa.coffee@gmail.com \
--cc=eric@inl.fr \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox