* conntrack-utils needs to autoload netlink
@ 2009-04-19 11:08 Jan Engelhardt
2009-04-19 11:45 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2009-04-19 11:08 UTC (permalink / raw)
To: pablo; +Cc: Netfilter Developer Mailing List
Hi,
I observed that running `conntrack -E` does not autoload
nf_conntrack_netlink.ko, and as such, does not receive any events.
`conntrack -L` on the other hand does autoload it, and subsequent -E
works.
Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: conntrack-utils needs to autoload netlink
2009-04-19 11:08 conntrack-utils needs to autoload netlink Jan Engelhardt
@ 2009-04-19 11:45 ` Pablo Neira Ayuso
2009-04-20 14:45 ` Patrick McHardy
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2009-04-19 11:45 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Netfilter Developer Mailing List
Jan Engelhardt wrote:
> Hi,
>
> I observed that running `conntrack -E` does not autoload
> nf_conntrack_netlink.ko, and as such, does not receive any events.
> `conntrack -L` on the other hand does autoload it, and subsequent -E
> works.
Yes, that's a known issue. The problem is the following: with `conntrack
-L', netlink loads nfnetlink when the socket is created, then nfnetlink
receives a message requesting a dump, thus, nfnetlink loads
nf_conntrack_netlink. However, with `conntrack -E', netlink loads
nfnetlink, but nfnetlink does not receive any message from conntrack
since listening to events doesn't require such operation. thus,
nf_conntrack_netlink is not loaded.
I wrote a patch time ago to load nf_conntrack_netlink from user-space
when `conntrack -E' is invoked. I don't see a way to fix this in the
kernel code, so that's the only idea that I can find to fix this
problem. Still, I don't like too much the idea of doing the autoload
from user-space.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: conntrack-utils needs to autoload netlink
2009-04-19 11:45 ` Pablo Neira Ayuso
@ 2009-04-20 14:45 ` Patrick McHardy
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2009-04-20 14:45 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Jan Engelhardt, Netfilter Developer Mailing List
Pablo Neira Ayuso wrote:
> I wrote a patch time ago to load nf_conntrack_netlink from user-space
> when `conntrack -E' is invoked. I don't see a way to fix this in the
> kernel code, so that's the only idea that I can find to fix this
> problem. Still, I don't like too much the idea of doing the autoload
> from user-space.
You could add a callback for multicast-binds and have that callback
load the nfnetlink-specific module.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-20 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 11:08 conntrack-utils needs to autoload netlink Jan Engelhardt
2009-04-19 11:45 ` Pablo Neira Ayuso
2009-04-20 14:45 ` Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).