Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2011 22:57:26 +0400
From:      Sergey Vinogradov <boogie@lazybytes.org>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: ifconfig output: ipv4 netmask format
Message-ID:  <4D9F5A96.6040501@lazybytes.org>
In-Reply-To: <BANLkTimtKiTTc49Aee6a-nfzKyHUoJAGNQ@mail.gmail.com>
References:  <4D9EFAC6.4020906@lazybytes.org>	<7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com>	<4D9F2C88.4010205@lazybytes.org> <BANLkTimtKiTTc49Aee6a-nfzKyHUoJAGNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[snip]

>> So, maybe, while following the POLA, we should add an option, as Daniel
>> mentioned above? To output the CIDR?
>
> Eh... I don't know if doing this would be wise because it might break
> some 3rd party mechanisms for parsing the output (as broken as you
> might think it is), in particular (for example) because people can
> alias the ifconfig command to something else.

If we'll introduce such ifconfig option (i.e. ifconfig -c) nothing is 
going to break: ifconfig's default behavior won't change, and people, 
who will alias `ifconfig' to `ifconfig -c' are their own enemies. User 
should think about consequences of such actions.

-- 
wbr,
Boo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D9F5A96.6040501>