From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Netfilter Core Team <netfilter-devel@vger.kernel.org>,
Pablo Neira Ayuso <pablo@netfilter.org>,
Patrick McHardy <kaber@trash.net>
Subject: Re: [PATCH v2 3/3] ipset: change 'iface' part in hash:net,iface set
Date: Sat, 14 Jul 2012 13:35:24 +0100 [thread overview]
Message-ID: <5001678C.6000505@googlemail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1207141009340.1031@blackhole.kfki.hu>
> a. The keywords are not permitted at all.
> b. "in/out" is permitted but "converted" to "src/dst" wherever needed for
> the member sets, that is all types but hash:net,iface.
>
Solution "b.", as you put it above, is what I have implied with my
question yesterday.
> Solution a. is completely acceptable for me. It can nicely be documented,
> there's no chance for misunderstanding.
>
> Solution b. is also acceptable but it's more controversial: if "in/out" is
> accepted with list:set type, then it's very hard to explain why it's *not*
> allowed with every type, when actually "in/out" is allowed then for every
> type of member sets of list:set type of sets. So solution b. implies that
> "in/out" is then a general synonym of "src/dst" and should be allowed
> everywhere. Therefore I'm not really happy with solution b. but I can
> stomach it.
>
There is a flip side to that particular coin - I could argue that since
in/out *is* allowed to be used in hash:net,iface, why can't it be used
in list:set where I could have hash:net,iface type sets accepted as
members? You are imposing an unnecessary restriction where none is needed.
Also, don't forget that this may be OK with someone, like yourself, who
is comfortable interchanging in/out with src/dst quite easily, but for
people like myself, where I have to scratch my head and think "god, what
the hell was the substitution for 'in' now?" before specifying src/dst,
this is not as straight-forward as you might think.
So, to conclude: "solution b." is a good compromise - one I will be
quite happy with. If src/dst is used together with in/out (in
list:sets!), you leave the end user to decide what is more appropriate
for each case as list:set could have hash:net,iface as well as other
type of sets as members and in this case that is OK to be allowed (one
cannot guess what will be entered in advance as members of that
list:set, so it makes perfect sense to leave that decision to the end user).
> Do you see other possibilities, which produce result independent of the
> allowed syntax?
>
No, not without you being on my case. For list:set types, as it is kind
of a "unique" set (as it could have different types of sets as members)
I think "solution b." is quite acceptable.
next prev parent reply other threads:[~2012-07-14 12:35 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-09 22:23 [PATCH v2 0/3] iptables: change 'iface' part in hash:net,iface set Mr Dash Four
2012-07-09 22:23 ` [PATCH v2 1/3] " Mr Dash Four
2012-07-10 15:54 ` Jozsef Kadlecsik
2012-07-10 23:41 ` Mr Dash Four
2012-07-12 7:11 ` Jozsef Kadlecsik
2012-07-13 0:41 ` Mr Dash Four
2012-07-13 8:11 ` Jozsef Kadlecsik
2012-07-13 13:56 ` Mr Dash Four
2012-07-09 22:23 ` [PATCH v2 2/3] ipset: " Mr Dash Four
2012-07-10 15:35 ` Jozsef Kadlecsik
2012-07-09 22:23 ` [PATCH v2 3/3] " Mr Dash Four
2012-07-10 15:32 ` Jozsef Kadlecsik
2012-07-10 23:41 ` Mr Dash Four
2012-07-11 20:25 ` Jozsef Kadlecsik
2012-07-13 0:42 ` Mr Dash Four
2012-07-13 8:02 ` Jozsef Kadlecsik
2012-07-13 13:57 ` Mr Dash Four
2012-07-13 14:16 ` Jozsef Kadlecsik
2012-07-13 14:22 ` Mr Dash Four
2012-07-14 8:45 ` Jozsef Kadlecsik
2012-07-14 12:35 ` Mr Dash Four [this message]
2012-07-14 16:37 ` Jozsef Kadlecsik
2012-07-15 11:54 ` Mr Dash Four
2012-07-15 15:02 ` Jozsef Kadlecsik
2012-07-15 16:32 ` Mr Dash Four
2012-07-15 19:21 ` Jozsef Kadlecsik
2012-07-15 19:39 ` Jozsef Kadlecsik
2012-07-15 22:14 ` Mr Dash Four
2012-07-16 8:03 ` Jozsef Kadlecsik
2012-07-16 12:39 ` Mr Dash Four
2012-07-16 13:58 ` Jozsef Kadlecsik
2012-07-17 23:29 ` Mr Dash Four
2012-07-18 12:54 ` Jozsef Kadlecsik
2012-07-19 22:52 ` Mr Dash Four
2012-07-19 22:52 ` Mr Dash Four
2012-07-15 22:48 ` Mr Dash Four
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=5001678C.6000505@googlemail.com \
--to=mr.dash.four@googlemail.com \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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).