fn read_ipv4_addr(addr: &sockaddr) -> Ipv4Addr
Extract the IPv4 address from a sockaddr. Assumes the sockaddr is a sockaddr_in.