Re: NFQUEUE hello world-style program

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

 



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);

And out of curiosity, is the unbind really needed or is it a relic of the 
past? :)

Thanks again,
Simon

-- 
Please try Numb, a STUN/TURN server implementation.
Free access at http://numb.viagenie.ca/.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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