implement dn_skipname (legacy resolver function)
add prototype for dn_skipname
net/if.h: add some missing IFF_ constants
add getifaddrs

supports ipv4 and ipv6, but not the "extended" usage where
usage statistics and other info are assigned to ifa_data members
of duplicate entries with AF_PACKET family.
include/ifaddrs.h: add prototypes for get/freeifaddrs
getifaddrs: less malloc
getifaddrs: one less indent level
getifaddrs: use if_nameindex to enumerate interfaces
getifaddrs: remove unused label