fn create_sockaddr(ip_addr: Ipv4Addr) -> sockaddr
Expand description

Create a sockaddr_in from an IPv4 address, and expose it as an opaque sockaddr suitable for usage by socket ioctls.