From: Patrick McHardy <kaber@trash.net>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>,
Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Subject: Re: nf_nat tree updated
Date: Fri, 24 Nov 2006 07:24:33 +0100 [thread overview]
Message-ID: <45669021.8060109@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0611240036380.21966@blackhole.kfki.hu>
Jozsef Kadlecsik wrote:
> There is a locking bug in the nat-core[2].patch I sent to the list:
>
> @@ -659,7 +695,12 @@
> return NULL;
> }
>
> - conntrack = __nf_conntrack_alloc(tuple, &repl_tuple, l3proto);
> + read_lock_bh(&nf_conntrack_lock);
> + exp = find_expectation(tuple);
> + read_unlock_bh(&nf_conntrack_lock);
>
> find_expectation finds *and* deletes the expectation from the list so
> write locking is required here.
I'll fix it up, thanks.
>>A few questions:
>>
>>- this seems like a good chance to get rid of the helper naming
>> inconsistencies (nf_conntrack_helper_* vs nf_conntrack_*).
>> Should we rename all helpers to nf_conntrack_helper_XXX? We
>> have to provide module aliases for the old names anyway ..
>
>
> All helper modules are named as nf_conntrack_*. Only the file naming is
> inconsistent. Or do you propose to rename all nf_conntrack_foo helper
> module to nf_conntrack_helper_foo?
I mainly want to get rid of the inconsistent file naming, but unless
we add lots of special rules to the Makefile, that will affect the
module names as well.
>>- /proc-compatibility: since the plan is to get rid of the
>> old IPv4-only connection tracking ASAP, we need to think
>> of something to keep old scripts fiddling with /proc-files
>> working. So we probably need to do some symlinking (is that
>> possible?) of the old net/ipv4/netfilter files or just keep
>> the around as normal files.
>
>
> As I see symlinking is not possible, so we have to keep the old files.
>
>
>> And we need a /proc/net/ip_conntrack that only shows IPv4 entries I
>> suppose.
>
>
> Yes! Missing /proc/net/ip_conntrack could break a lot of scripts.
I'll take care of the proc files.
next prev parent reply other threads:[~2006-11-24 6:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-23 15:55 nf_nat tree updated Patrick McHardy
2006-11-23 16:24 ` Yasuyuki KOZAKAI
2006-11-23 17:16 ` [PATCH 0/2] fixes helper assingments (Was: Re: nf_nat tree updated) Yasuyuki KOZAKAI
2006-11-23 23:54 ` nf_nat tree updated Jozsef Kadlecsik
2006-11-24 6:24 ` Patrick McHardy [this message]
2006-11-24 8:16 ` Patrick McHardy
2006-11-24 14:27 ` Yasuyuki KOZAKAI
[not found] ` <200611241427.kAOERapt022342@toshiba.co.jp>
2006-11-24 14:31 ` 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=45669021.8060109@trash.net \
--to=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@lists.netfilter.org \
--cc=yasuyuki.kozakai@toshiba.co.jp \
/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 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.