History log of /seL4-camkes-master/projects/musllibc/src/network/if_nameindex.c
Revision Date Author Comments
# 08e4052c 08-Apr-2014 Timo Teräs <timo.teras@iki.fi>

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.


# 57174444 11-Dec-2013 Szabolcs Nagy <nsz@port70.net>

include cleanups: remove unused headers and add feature test macros


# 0716b10a 08-Jul-2013 Rich Felker <dalias@aerifal.cx>

fix missing SOCK_CLOEXEC in various functions that use sockets internally


# 68c58223 21-Jul-2012 Rich Felker <dalias@aerifal.cx>

fix logic error for skipping failed interfaces in if_nameindex


# fc0ecd35 02-Aug-2011 Rich Felker <dalias@aerifal.cx>

implement if_nameindex and if_freenameindex