From: Eric Leblond <eric@inl.fr>
To: Simon Perreault <simon.perreault@viagenie.ca>
Cc: netfilter@vger.kernel.org
Subject: Re: NFQUEUE hello world-style program
Date: Fri, 4 Jul 2008 16:08:08 +0200 [thread overview]
Message-ID: <20080704140808.GC30729@bayen.regit.org> (raw)
In-Reply-To: <200807040828.37923.simon.perreault@viagenie.ca>
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
Hello,
On Friday, 2008 July 4 at 8:28:37 -0400, Simon Perreault wrote:
> On Friday 04 July 2008 05:26:38 Eric Leblond wrote:
> > You are missing the unbind bind
> >
> > nfq_unbind_pf(h, AF_INET);
> > nfq_bind_pf(h, AF_INET);
> >
> > You can have a look at for working code:
> > * utils/nfqnl_test.c in libnetfilter_queue sources
> > *
> > http://software.inl.fr/trac/browser/mirror/edenwall/nufw/trunk/nufw/src/nuf
> >w/packetsrv.c#L219
>
> Many thanks!
>
> I suppose if I want to bind to multiple families I do as in packetsrv.c,
> right?
>
> nfq_unbind_pf(h, AF_INET);
> nfq_bind_pf(h, AF_INET);
> nfq_unbind_pf(h, AF_INET6);
> nfq_bind_pf(h, AF_INET6);
Exact !
> And out of curiosity, is the unbind really needed or is it a relic of the
> past? :)
Don't know could you test this ? I did not change or look at my code on
NuFW since a long time now.
>
> Thanks again,
You're welcome.
BR,
--
Eric Leblond
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-07-04 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 20:07 NFQUEUE hello world-style program Simon Perreault
2008-07-04 9:26 ` Eric Leblond
2008-07-04 12:28 ` Simon Perreault
2008-07-04 14:08 ` Eric Leblond [this message]
2008-07-04 12:57 ` Simon Perreault
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=20080704140808.GC30729@bayen.regit.org \
--to=eric@inl.fr \
--cc=netfilter@vger.kernel.org \
--cc=simon.perreault@viagenie.ca \
/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