My application needs to list all network interafaces on a machine and their IPs, IPv4 and IPv6.
I can get all interfaces with IPv4 IPs using ioctl(SIOCGIFCONF), but I ne
getifaddrs(3) provides portable way to get network addresses and interface names.