ifconfig v2
David Young <dyoung <at> pobox.com>
2013-06-12 02:50:24 GMT
I was just reminded what improvements can be made to ifconfig output
when I read this ifconfig output that appeared on current-users today:
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
capabilities=7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx>
capabilities=7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
enabled=0
ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
ec_enabled=0
address: 00:26:2d:f3:c8:c7
media: Ethernet none (none)
inet 169.254.162.222 netmask 0xffff0000 broadcast 169.254.255.255
inet6 fe80::226:2dff:fef3:c8c7%wm0 prefixlen 64 scopeid 0x1
The ALL-CAPITALS text is really hard to read. Let's change that to
lower:
wm0: flags=8843<up,broadcast,running,simplex,multicast> mtu 1500
capabilities=7ff80<tso4,ip4csum_rx,ip4csum_tx,tcp4csum_rx>
capabilities=7ff80<tcp4csum_tx,udp4csum_rx,udp4csum_tx,tcp6csum_rx>
capabilities=7ff80<tcp6csum_tx,udp6csum_rx,udp6csum_tx,tso6>
enabled=0
ec_capabilities=7<vlan_mtu,vlan_hwtagging,jumbo_mtu>
ec_enabled=0
address: 00:26:2d:f3:c8:c7
media: Ethernet none (none)
inet 169.254.162.222 netmask 0xffff0000 broadcast 169.254.255.255
inet6 fe80::226:2dff:fef3:c8c7%wm0 prefixlen 64 scopeid 0x1
(Continue reading)