All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Patrick Schaaf <bof@bof.de>
Cc: Phil Oester <kernel@linuxace.com>, netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] iptables: handle cidr notation more sanely
Date: Mon, 10 Jul 2006 09:24:39 +0200	[thread overview]
Message-ID: <44B200B7.8020908@trash.net> (raw)
In-Reply-To: <20060710065244.GB832@oknodo.bof.de>

Patrick Schaaf wrote:
>>>Better hope the past lazy typers' boot time iptables scripts will not break
>>>in any critical way by such a radical interpretation change.
>>>
>>>Of course, it's all their own fault when that happens, lazy bastards.
>>
>>Please don't put words in my mouth.
> 
> 
> Those were my words, not yours. I did in no way intend to put them
> into your mouth. And I stand by them. I'm a cynic. That's one of the
> reasons I forbid myself becoming maintainer... (lazyness being the
> most important reason, of course :)


Applogogies for the misunderstanding then.

>>If they rely on undocumented, clearly illogical (10.10/16 == 10/16)
>>behaviour, then yes, they are at fault, but its not because of beeing
>>lazy typers.
> 
> 
> On one hand, it is just that, in my opinion.
> 
> On the other hand, it is always a bit the fault of software permitting
> such abbreviation with arbitrary, undocumented semantics, in the first place.


I absolutely agree, my guess is that my feelings about that are
even stronger than yours :) This is one reason why I think it is
good to get rid of the old behaviour.

>>>Methinks that it would be better to make non-3-dots IP addresses
>>>a syntax error, period.
>>
>>I can understand your position about breaking compatibility, but
>>this seems unreasonable to me. You're saying we should do something
>>that has even more problems (breaking compatibility for shortcuts
>>without masks as well),
> 
> 
> I did not think about the case without masks (/32) at all. Good point.
> 
> So methinks non-3-dots should be syntax errors whenever used with masks != /32.


I actually think its nice that we now support 172.16/16 in a way
I think a user would expect it to work. The important thing is that
is has well defined and commonly understood semantics (and maybe
that it gets documented). The old behaviour, which is now only used
for non-masked expressions was unknown to me (10.10 == 10.0.0.10),
but it matches what IPv6 does and according to Henrik (whom I
fully trust) it is also commonly used for IPv4. So I think what
we have with this patch fully meets user expectations.

> And you do what you think is best. As always. And I thank you for that!

Unfortunately I also don't always know what's best, so your opinion
is appreciated, forcing me to think for a second time can only be a
good thing :)

      reply	other threads:[~2006-07-10  7:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-09 22:28 [PATCH] iptables: handle cidr notation more sanely Phil Oester
2006-07-10  4:26 ` Patrick McHardy
2006-07-10  5:59   ` Patrick Schaaf
2006-07-10  6:43     ` Patrick McHardy
2006-07-10  6:52       ` Patrick Schaaf
2006-07-10  7:24         ` Patrick McHardy [this message]

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=44B200B7.8020908@trash.net \
    --to=kaber@trash.net \
    --cc=bof@bof.de \
    --cc=kernel@linuxace.com \
    --cc=netfilter-devel@lists.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 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.