From: Eric Leblond <eric@inl.fr>
To: Khoa Nguyen <khoa.coffee@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: libipq and destination IP address
Date: Fri, 19 Oct 2007 11:39:43 +0200 [thread overview]
Message-ID: <1192786783.29962.126.camel@khasse.inl.fr> (raw)
In-Reply-To: <3d00e6dc0710160744ia8edebbn8dafb76d709622dc@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 818 bytes --]
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
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-19 9:39 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 [this message]
2007-10-19 13:29 ` Khoa Nguyen
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=1192786783.29962.126.camel@khasse.inl.fr \
--to=eric@inl.fr \
--cc=khoa.coffee@gmail.com \
--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