diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-04-08 14:03:16 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-29 20:57:31 -0400 |
commit | 08e4052c43692a9306c5c638d70fba7f7ba08c52 (patch) | |
tree | c6163802d24ed751bb5942ff862e17217083807b /crt/x32 | |
parent | cbb609b3db500e6aebe15762abebc4cb23563b8a (diff) | |
download | musl-08e4052c43692a9306c5c638d70fba7f7ba08c52.tar.gz |
reimplement if_nameindex and getifaddrs using netlink
the previous implementations had several deficiencies, the most severe
of which was the inability to report unconfigured interfaces or
interfaces without ipv4 addresses. among the options discussed for
fixing this, using netlink turned out to be the one with the least
cost and most additional advantages. other improvements include:
if_nameindex now avoids duplicates in the list it produces, but still
includes legacy-style interface aliases if any are in use.
getifaddrs now reports hardware addresses and includes the scope_id
for link-local ipv6 addresses in the resulting address.
Diffstat (limited to 'crt/x32')
0 files changed, 0 insertions, 0 deletions