(__get_myaddress): Use getifaddrs instead of ioctl.