getifaddrs() stuff for raw sockets. WIP.