ifconfig.c && netmask
George V. Neville-Neil
gnn at neville-neil.com
Wed Sep 8 16:25:26 PDT 2004
At Wed, 08 Sep 2004 19:17:38 +0300,
Artis Caune wrote:
>
> How come that ifconfig prints netmask in hex?
>
> Isn't
> "inet 127.0.0.1 netmask 255.0.0.0"
> more readable than
> "inet 127.0.0.1 netmask 0xff000000"
>
> why 'route get x.x.x.x' gives mask in decimal?
> ;))
>
>
> Is it some posix standart or something historical or will it brake some
> scripts?
>
It's historical.
Later,
George
More information about the freebsd-net
mailing list