46db29bcf1
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. |
||
---|---|---|
.. | ||
base64.c | ||
byteorder.3 | ||
ethers.3 | ||
ethers.c | ||
gai_strerror.3 | ||
getaddrinfo.3 | ||
getaddrinfo.c | ||
gethnamaddr.c | ||
gethostbyname.3 | ||
getifaddrs.3 | ||
getifaddrs.c | ||
getnameinfo.3 | ||
getnameinfo.c | ||
getnetent.3 | ||
getnetent.c | ||
getnetnamadr.c | ||
getpeereid.3 | ||
getpeereid.c | ||
getprotobyname_r.c | ||
getprotobyname.c | ||
getprotobynumber_r.c | ||
getprotobynumber.c | ||
getprotoent_r.c | ||
getprotoent.3 | ||
getprotoent.c | ||
getservbyname_r.c | ||
getservbyname.c | ||
getservbyport_r.c | ||
getservbyport.c | ||
getservent_r.c | ||
getservent.3 | ||
getservent.c | ||
hesiod.3 | ||
hesiod.c | ||
if_indextoname.3 | ||
if_indextoname.c | ||
if_nameindex.c | ||
if_nametoindex.c | ||
inet6_opt_init.3 | ||
inet6_option_space.3 | ||
inet6_rth_space.3 | ||
inet6_rthdr_space.3 | ||
ip6opt.c | ||
iso_addr.3 | ||
iso_addr.c | ||
linkaddr.3 | ||
linkaddr.c | ||
Lint_htonl.c | ||
Lint_htons.c | ||
Lint_ntohl.c | ||
Lint_ntohs.c | ||
Makefile.inc | ||
nsdispatch.3 | ||
nsdispatch.c | ||
nslexer.l | ||
nsparser.y | ||
protoent.h | ||
rcmd.3 | ||
rcmd.c | ||
recv.c | ||
resolver.3 | ||
rthdr.c | ||
send.c | ||
servent.h | ||
sethostent.c | ||
sockatmark.3 | ||
sockatmark.c | ||
vars6.c |