lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1224086831.3984.196.camel@achroite>
Date:	Wed, 15 Oct 2008 17:07:10 +0100
From:	Ben Hutchings <bhutchings@...arflare.com>
To:	Krzysztof Halasa <khc@...waw.pl>
Cc:	Herbert Xu <herbert@...dor.apana.org.au>,
	Stephen Hemminger <shemminger@...tta.com>,
	Krzysztof Oledzki <ole@....pl>, netdev@...r.kernel.org
Subject: Re: Error: an inet prefix is expected rather than "0/0".

On Wed, 2008-10-15 at 17:35 +0200, Krzysztof Halasa wrote:
> Herbert Xu <herbert@...dor.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).

It's a Berkeley extension which spread via BSD and its inet_aton()
function.  I don't believe it's specified in any RFC.

> 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

No, a single number is treated by inet_aton() as a 32-bit address, so 10
is equivalent to 0.0.0.10.

> If it can't stay this way, lets remove this shortened notation
> completely.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ