An implementation of getifaddrs() for Android.