ifconfig.c && netmask
From: Artis Caune (artis_at_fbsd.lv)
Date: 09/08/04
- Previous message: Guy Helmer: "Re: [PATCH] Add ioctl to disable bpf timestamping"
- Next in thread: George V. Neville-Neil: "Re: ifconfig.c && netmask"
- Reply: George V. Neville-Neil: "Re: ifconfig.c && netmask"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-net@freebsd.org Date: Wed, 08 Sep 2004 19:17:38 +0300
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?
I'm ok with hex, just want to know..
***
! printf("netmask 0x%lx ", (unsigned
long)ntohl(sin->sin_addr.s_addr));
! printf("netmask %s ", inet_ntoa(sin->sin_addr));
***
-- Artis _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Guy Helmer: "Re: [PATCH] Add ioctl to disable bpf timestamping"
- Next in thread: George V. Neville-Neil: "Re: ifconfig.c && netmask"
- Reply: George V. Neville-Neil: "Re: ifconfig.c && netmask"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|