git: ifconfig(8): Use getifaddrs(3) from libc
Aaron LI
aly at crater.dragonflybsd.org
Fri Jun 26 07:55:31 PDT 2020
commit 5ecbd7012b0fe835dcda54ca97b260ded1a4b136
Author: Aaron LI <aly at aaronly.me>
Date: Fri Jun 26 17:59:53 2020 +0800
ifconfig(8): Use getifaddrs(3) from libc
Use libc's getifaddrs(3) instead of implementing its own version.
Obtained from FreeBSD (revisions 166956 and 199770); with minor
adjustments.
While there, also adjust some styles.
Summary of changes:
sbin/ifconfig/af_inet.c | 25 +++--
sbin/ifconfig/af_inet6.c | 20 ++--
sbin/ifconfig/af_link.c | 6 +-
sbin/ifconfig/ifconfig.c | 235 +++++++++++++++++------------------------------
sbin/ifconfig/ifconfig.h | 5 +-
5 files changed, 110 insertions(+), 181 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ecbd7012b0fe835dcda54ca97b260ded1a4b136
--
DragonFly BSD source repository
More information about the Commits
mailing list