summaryrefslogtreecommitdiff
path: root/src/network/if_nameindex.c
AgeCommit message (Collapse)AuthorLines
2014-07-29reimplement if_nameindex and getifaddrs using netlinkTimo Teräs-38/+97
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.
2013-12-12include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy-2/+0
2013-07-09fix missing SOCK_CLOEXEC in various functions that use sockets internallyRich Felker-1/+1
2012-07-21fix logic error for skipping failed interfaces in if_nameindexRich Felker-8/+7
2011-08-03implement if_nameindex and if_freenameindexRich Felker-0/+58