udpsocket: replace ioctl() by getifaddrs() to gather the local interfaces IP addresses.