svn commit: r190758 - head/sbin/route

Robert Watson rwatson at FreeBSD.org
Tue Apr 7 09:35:30 PDT 2009


On Tue, 7 Apr 2009, Dag-Erling Smørgrav wrote:

> Robert Watson <rwatson at FreeBSD.org> writes:
>> Does this maintain compatibility for people who may still mysteriously
>> be specifying class-based IPs and netmasks in configuration files?  If
>> not, this should not be MFC'd...
>
> Here's the really ugly part...
>
> % ping 10
> PING 10 (0.0.0.10): 56 data bytes
> % ping 10.1
> PING 10.1 (10.0.0.1): 56 data bytes
> % ping 10.1.1
> PING 10.1.1 (10.1.0.1): 56 data bytes
>
> This makes no sense at all today, but we can't fix it, because it's the 
> documented and standard-mandated behavior of inet_pton(3) and, if I'm not 
> mistaken, getaddrinfo(3).

Sadly, I'm familiar with this already :-(.  However, for the time being, I'm 
less concerned about ugliness, and more concerned about breaking existing 
scripts and tools.

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the svn-src-head mailing list