Function net_util::sys::unix::tap::read_ipv4_addr

source ·
fn read_ipv4_addr(addr: &sockaddr) -> Ipv4Addr
Expand description

Extract the IPv4 address from a sockaddr. Assumes the sockaddr is a sockaddr_in.