NetBSD/sbin/ifconfig
dyoung 46db29bcf1 Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.
2009-04-27 20:10:49 +00:00
..
af_atalk.c is@ pointed out that I set the phase and range of a sockaddr_at 2008-08-01 22:44:17 +00:00
af_inet6.c Only describe flags -L and -m in the usage if they are available. 2008-07-15 20:56:13 +00:00
af_inet.c Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
af_inetany.c Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
af_inetany.h Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
af_iso.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
af_link.c To make sure that we always print the active link-layer address in the 2009-04-21 22:46:39 +00:00
agr.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
carp.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
env.c Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
env.h Overhaul ifconfig. Use fewer global variables. Take a leap toward 2008-05-06 04:33:42 +00:00
extern.h Only describe flags -L and -m in the usage if they are available. 2008-07-15 20:56:13 +00:00
ieee80211.c fix -Wsign-compare issues 2009-01-18 00:24:29 +00:00
ifconfig.8 Remove physical markup. Remove incorrect keep, .Bk is not callable, but 2009-04-08 14:32:05 +00:00
ifconfig.c To make sure that we always print the active link-layer address in the 2009-04-21 22:46:39 +00:00
Makefile Enable WARNS=4 by default except for: 2009-04-11 07:58:11 +00:00
Makefile.inc Add RCS Id. XXX why separate Makefile.inc? 2008-11-29 15:23:32 +00:00
media.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
media.h Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
parse.c fix -Wsign-compare issues 2009-01-18 00:24:29 +00:00
parse.h Extract common code. Create subroutine paddr_prefix_size(). 2008-08-01 22:29:13 +00:00
tunnel.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00
util.c Bring getifaddrs(3) behavior in line with the documentation: the 2009-04-27 20:10:49 +00:00
util.h To make sure that we always print the active link-layer address in the 2009-04-21 22:46:39 +00:00
vlan.c Cosmetic: s/xenv/oenv/ 2008-07-15 21:27:58 +00:00