fn create_sockaddr(ip_addr: Ipv4Addr) -> sockaddr
Create a sockaddr_in from an IPv4 address, and expose it as an opaque sockaddr suitable for usage by socket ioctls.