From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: conntrack-utils needs to autoload netlink
Date: Sun, 19 Apr 2009 13:45:14 +0200 [thread overview]
Message-ID: <49EB0ECA.1000405@netfilter.org> (raw)
In-Reply-To: <alpine.LSU.2.00.0904191307310.31907@fbirervta.pbzchgretzou.qr>
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
next prev parent reply other threads:[~2009-04-19 11:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-19 11:08 conntrack-utils needs to autoload netlink Jan Engelhardt
2009-04-19 11:45 ` Pablo Neira Ayuso [this message]
2009-04-20 14:45 ` Patrick McHardy
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=49EB0ECA.1000405@netfilter.org \
--to=pablo@netfilter.org \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).