From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: laforge@netfilter.org, netfilter-devel@lists.netfilter.org,
Patrick McHardy <kaber@trash.net>
Subject: Re: expectation mask handling in nfctnetlink (Was Re: [PATCH] fix nf_conntrack_netlink expectation dumping/event notification)
Date: Wed, 01 Feb 2006 03:09:21 +0100 [thread overview]
Message-ID: <43E01851.4040306@netfilter.org> (raw)
In-Reply-To: <200601200457.k0K4vvAI001787@toshiba.co.jp>
Hi Yasuyuki,
I'd like to recover this thread.
Yasuyuki KOZAKAI wrote:
>>I feel strange to find l3proto with 0xffff as address family or to find proto
>>with 0xff as protocol number.
>>
>>After all, ctnetlink_dump_tuples() gets nf_conntrack_l3proto_generic /
>>nf_conntrack_proto_generic and they doesn't fill any contents, right ?
>>
>>If so, I think that it's better to make ctnetlink_exp_dump_expect() use
>>l3proto/proto for &exp->tuple to dump &exp->mask, and then
>>we would not need to remove above unlikely().
>
> I've re-visited this. For now, I'm not sure this is the best solution
> because I don't see how format and contents of expectation mask
> is required by libnetfilter_conntrack. It doesn't use dumped expectation
> mask at all.
Maybe userspace helpers could need that information some day. I don't
want to add limitations to libnetfilter_conntrack just because we have
some assumptions.
> Then the other idea can be considerd, too. For example, dumping union of
> l3part(mask->u3.all) and union of proto part(mask->u.all) without assumption
> of specific address family/protocol. Do you have any idea on this ?
We shouldn't send the whole union via netlink. If the union is modified
further, it will break backward compatibility for userspace applications
since the size could change.
So, the possibilities I see up to now are:
a) just remove the unlikely() statement.
Drawback: Not so efficient, since that checking isn't always required.
b) back to my idea: set l3num to the maximum known value (0x1F), and add
a bug trap in nf_ct_expect_related to check that nobody uses a value >=
AF_MAX.
Drawback: People surely will hit bug while writing their own helpers.
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
next prev parent reply other threads:[~2006-02-01 2:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 1:41 [PATCH] fix nf_conntrack_netlink expectation dumping/event notification Pablo Neira Ayuso
2006-01-13 8:58 ` Patrick McHardy
2006-01-13 9:02 ` Yasuyuki KOZAKAI
[not found] ` <200601130902.k0D92fVM026246@toshiba.co.jp>
2006-01-13 9:04 ` Patrick McHardy
2006-01-13 9:38 ` Yasuyuki KOZAKAI
[not found] ` <200601130938.k0D9c6Yo007986@toshiba.co.jp>
2006-01-13 9:45 ` Patrick McHardy
2006-01-13 10:12 ` YOSHIFUJI Hideaki / 吉藤英明
2006-01-13 10:44 ` Patrick McHardy
[not found] ` <200601130938.k0D9c6ud007984@toshiba.co.jp>
2006-01-13 11:17 ` Pablo Neira Ayuso
2006-01-15 13:07 ` Yasuyuki KOZAKAI
2006-01-20 4:57 ` expectation mask handling in nfctnetlink (Was Re: [PATCH] fix nf_conntrack_netlink expectation dumping/event notification) Yasuyuki KOZAKAI
2006-02-01 2:09 ` Pablo Neira Ayuso [this message]
2006-02-01 11:04 ` Patrick McHardy
[not found] ` <200602011335.k11DZHwj018072@toshiba.co.jp>
2006-02-02 0:45 ` [RFC] [PATCH] Fix expectation mask dumping (Was Re: expectation mask handling in nfctnetlink) Pablo Neira Ayuso
2006-02-02 10:30 ` [RFC] [PATCH] Fix expectation mask dumping Yasuyuki KOZAKAI
2006-02-05 23:54 ` [PATCH] Fix expectation mask dumping, take #2 Pablo Neira Ayuso
2006-02-06 2:15 ` Yasuyuki KOZAKAI
2006-02-08 11:26 ` Yasuyuki KOZAKAI
[not found] ` <200602081126.k18BQWLj029476@toshiba.co.jp>
2006-02-08 12:25 ` Pablo Neira Ayuso
2006-02-01 13:16 ` expectation mask handling in nfctnetlink Yasuyuki KOZAKAI
2006-02-01 13:35 ` Yasuyuki KOZAKAI
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=43E01851.4040306@netfilter.org \
--to=pablo@netfilter.org \
--cc=kaber@trash.net \
--cc=laforge@netfilter.org \
--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.