use HAVE_GETIFADDRS to use getifaddrs().