From: Krzysztof Halasa <khc@pm.waw.pl>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
Krzysztof Oledzki <ole@ans.pl>,
netdev@vger.kernel.org
Subject: Re: Error: an inet prefix is expected rather than "0/0".
Date: Wed, 15 Oct 2008 17:35:06 +0200 [thread overview]
Message-ID: <m34p3door9.fsf@maximus.localdomain> (raw)
In-Reply-To: <20081015014624.GA3251@gondor.apana.org.au> (Herbert Xu's message of "Wed\, 15 Oct 2008 09\:46\:24 +0800")
Herbert Xu <herbert@gondor.apana.org.au> writes:
> How about just keeping Alexey's code? POSIX doesn't restrict
> the IP address format command utilities should accept. So to
> me 127.2.0.0 is a perfectly acceptable interpretation of the
> partial address 127.2.
Then it would be better to disallow such things. The normal meaning
for "127.2" was always 127.0.0.2, and it was widely documented and
used (though perhaps in RFCs, not in POSIX). Some people use "10.1"
syntax all the time.
> This also has the benefit of not breaking any existing scripts
> that already work. The scripts which are broken will remain
> broken which doesn't surprise anyone.
Any script which uses 127.2 to mean 127.2.0.0 is IMHO broken, though
I have never seen anything like that.
Rules always have been simple:
10 - 10.0.0.0
10.1 - 10.0.0.1
10.1.2 - 10.0.1.2
If it can't stay this way, lets remove this shortened notation
completely.
--
Krzysztof Halasa
next prev parent reply other threads:[~2008-10-15 15:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 21:05 Error: an inet prefix is expected rather than "0/0" Krzysztof Oledzki
2008-10-08 21:32 ` Krzysztof Oledzki
2008-10-14 14:01 ` Herbert Xu
2008-10-14 17:46 ` Stephen Hemminger
2008-10-14 19:15 ` Krzysztof Oledzki
2008-10-14 19:18 ` Stephen Hemminger
2008-10-14 19:38 ` Ben Hutchings
2008-10-14 21:52 ` Patrick McHardy
2008-10-14 21:54 ` Patrick McHardy
2008-10-15 1:46 ` Herbert Xu
2008-10-15 15:35 ` Krzysztof Halasa [this message]
2008-10-15 16:07 ` Ben Hutchings
2008-10-15 18:52 ` Krzysztof Halasa
2008-10-27 17:39 ` Stephen Hemminger
2008-10-28 1:51 ` Herbert Xu
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=m34p3door9.fsf@maximus.localdomain \
--to=khc@pm.waw.pl \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=ole@ans.pl \
--cc=shemminger@vyatta.com \
/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