ifconfig output: ipv4 netmask format
jhell at DataIX.net
Sat Apr 9 04:55:02 UTC 2011
On Fri, Apr 08, 2011 at 07:36:45PM +0400, Sergey Vinogradov wrote:
>On 08.04.2011 19:23, Mike Oliver wrote:
>>On Fri, Apr 8, 2011 at 08:08, Sergey Vinogradov<boogie at lazybytes.org> wrote:
>>>I have a question: why ipv4 netmask is displayed by ifconfig in hex format?
>>>Isn't dot-decimal notation more human-readable? Will the attached patch
>>>break something in the very bad way?
>>Who's using IPv4 anymore? ;-)
>Long live IPv4! :)
>>Seriously though, if you give a small amount of time to learning the
>>hex -> binary translations then you would see how convenient it is to
>>use hex rather than decimal when representing what are ultimately
>>See this blog entry by Jeff Doyle...
>The article is great, but dot-decimal notation is de-facto standard
>for stand-alone network mask representation. Like CIDR is standard for
>IP blocks represenation. That's the reason I've started this thread.
>And despite the greatness of the article you've mentioned, I think
>it's a bad itea to hardcode its URL into ifconfig's output. You know,
>for every single user reading it, and choosing the "way of hex" ;)
This is the year 2011 right ? when are we going to support new users
rather than supporting old outdated washed up "scripts" ?
I for one am for this change, given that there are lots of users from
the PC-BSD community that do not read hexadecimal, octal and other such
forms like a programmer does.
And just because the change can be made does not mean that a
compatibility shim cannot be put into place that restores the old
It is time to stop living in the past and start thinking about the
future. These types of things are what causes forks of projects to
happen ultimately yielding in less contributors and developers. I for
one hate to see things like that happen.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 522 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110409/df6c9f11/attachment.pgp
More information about the freebsd-hackers