Re: NFQUEUE hello world-style program

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

 



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: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux