]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ifconfig(8) now supports some output formatting options
authorallanjude <allanjude@FreeBSD.org>
Tue, 31 May 2016 17:30:08 +0000 (17:30 +0000)
committerallanjude <allanjude@FreeBSD.org>
Tue, 31 May 2016 17:30:08 +0000 (17:30 +0000)
commit700d26896ca2f6c060890f6c5523c060ee809c5a
tree5060297368c2f9df6c277f2948882d567adaad24
parent192cb9b11a4ad1294117be9cbcae3ece5217f5fe
ifconfig(8) now supports some output formatting options

specified by the -f flag or IFCONFIG_FORMAT environment variable, the user
can request that inet4 subnet masks be printed in CIDR or dotted-quad
notation, in addition to the traditional hex output.
inet6 prefixes can be printed in CIDR as well.

For more documentation see the ifconfig(8) man page.

PR: 169072
Requested by: seanc, marcel, brd, many others
Reviewed by: gnn, jhb (earlier version)
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D2856
sbin/ifconfig/af_inet.c
sbin/ifconfig/af_inet6.c
sbin/ifconfig/af_link.c
sbin/ifconfig/ifconfig.8
sbin/ifconfig/ifconfig.c