* ipq and nf_queue compatibility
@ 2006-10-11 2:20 robert
2006-10-11 5:59 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: robert @ 2006-10-11 2:20 UTC (permalink / raw)
To: netfilter-devel
Hello,
I am porting a program that uses IPQ to NF_QUEUE, and the port went
very smoothly, but I noticed that if I run the nfqueue version once,
the ipq version stops working. The NF_QUEUE version always works,
but the other one simple stops functioning. Is there a known
incompatibility between the two? Or perhaps is there some global
state that I need to cleanup inside of the NFQUEUE version before I
execute the IPQ version. The kernel has both IPQ and NFQUEUE support.
This happens regardless of whether or not I call the function
nfq_unbind_pf on exit. Not really sure what that function does, but
it was inside of nfqnl_test.c, so I tried it out.
any ideas?
--robert
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ipq and nf_queue compatibility
2006-10-11 2:20 ipq and nf_queue compatibility robert
@ 2006-10-11 5:59 ` Patrick McHardy
2006-10-11 18:56 ` robert
0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2006-10-11 5:59 UTC (permalink / raw)
To: robert; +Cc: netfilter-devel
robert wrote:
> Hello,
>
> I am porting a program that uses IPQ to NF_QUEUE, and the port went
> very smoothly, but I noticed that if I run the nfqueue version once,
> the ipq version stops working. The NF_QUEUE version always works, but
> the other one simple stops functioning. Is there a known
> incompatibility between the two? Or perhaps is there some global state
> that I need to cleanup inside of the NFQUEUE version before I execute
> the IPQ version. The kernel has both IPQ and NFQUEUE support.
>
> This happens regardless of whether or not I call the function
> nfq_unbind_pf on exit. Not really sure what that function does, but it
> was inside of nfqnl_test.c, so I tried it out.
ip_queue only registeres itself when the module is loaded,
nfnetlink_queue registeres when NFQNL_CFG_CMD_PF_BIND is
received. So once ip_queue has been unregistered it never
registeres again and doesn't receive any packets anymore.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ipq and nf_queue compatibility
2006-10-11 5:59 ` Patrick McHardy
@ 2006-10-11 18:56 ` robert
2006-10-12 0:59 ` Patrick McHardy
0 siblings, 1 reply; 4+ messages in thread
From: robert @ 2006-10-11 18:56 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netfilter-devel
is there any sequence that will insure both ipq and nfqueue work?
should it just never unbind then? I am a little unclear what the
difference is between unregister and unbind?
--robert
On Oct 10, 2006, at 10:59 PM, Patrick McHardy wrote:
> robert wrote:
>> Hello,
>>
>> I am porting a program that uses IPQ to NF_QUEUE, and the port went
>> very smoothly, but I noticed that if I run the nfqueue version once,
>> the ipq version stops working. The NF_QUEUE version always
>> works, but
>> the other one simple stops functioning. Is there a known
>> incompatibility between the two? Or perhaps is there some global
>> state
>> that I need to cleanup inside of the NFQUEUE version before I
>> execute
>> the IPQ version. The kernel has both IPQ and NFQUEUE support.
>>
>> This happens regardless of whether or not I call the function
>> nfq_unbind_pf on exit. Not really sure what that function does,
>> but it
>> was inside of nfqnl_test.c, so I tried it out.
>
> ip_queue only registeres itself when the module is loaded,
> nfnetlink_queue registeres when NFQNL_CFG_CMD_PF_BIND is
> received. So once ip_queue has been unregistered it never
> registeres again and doesn't receive any packets anymore.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ipq and nf_queue compatibility
2006-10-11 18:56 ` robert
@ 2006-10-12 0:59 ` Patrick McHardy
0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2006-10-12 0:59 UTC (permalink / raw)
To: robert; +Cc: netfilter-devel
robert wrote:
> is there any sequence that will insure both ipq and nfqueue work?
> should it just never unbind then? I am a little unclear what the
> difference is between unregister and unbind?
You need to unload/reload the ip_queue module if you want it
to register again after "unbinding" nfnetlink_queue from
AF_INET.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-10-12 0:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 2:20 ipq and nf_queue compatibility robert
2006-10-11 5:59 ` Patrick McHardy
2006-10-11 18:56 ` robert
2006-10-12 0:59 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.