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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 15 Oct 2008 09:46:24 +0800
From:	Herbert Xu <>
To:	Stephen Hemminger <>
Cc:	Krzysztof Oledzki <>,
Subject: Re: Error: an inet prefix is expected rather than "0/0".

On Tue, Oct 14, 2008 at 10:46:21AM -0700, Stephen Hemminger wrote:
> There is no easy solution, I'll will have to go back rewrite this
> code, and will document the result. I expect the result will displease
> someone, but given the original code that is just going to happen.
> Busted cases:
>                            correct           incorrect
> Original code: 127.2   =>
> inet_pton:     10.0    =>          fails invalid
> inet_aton:     10      =>
> The problem was Alexey (or Jamal) invented their own abbreviation format
> and did not follow unix standard conventions.

How about just keeping Alexey's code? POSIX doesn't restrict
the IP address format command utilities should accept.  So to
me is a perfectly acceptable interpretation of the
partial address 127.2.

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.

Visit Openswan at
Email: Herbert Xu ~{PmV>HI~} <>
Home Page:
PGP Key:
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists