ifconfig output: ipv4 netmask format

Sergey Vinogradov boogie at lazybytes.org
Fri Apr 8 18:57:37 UTC 2011


[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


More information about the freebsd-hackers mailing list