Lines Matching refs:Ipv4Addr
63 fn create_sockaddr(ip_addr: net::Ipv4Addr) -> net_sys::sockaddr { in create_sockaddr()
77 fn read_ipv4_addr(addr: &net_sys::sockaddr) -> net::Ipv4Addr { in read_ipv4_addr() argument
82 net::Ipv4Addr::from(in_addr.sin_addr.s_addr) in read_ipv4_addr()
244 fn ip_addr(&self) -> Result<net::Ipv4Addr>; in ip_addr() argument
247 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()>; in set_ip_addr()
250 fn netmask(&self) -> Result<net::Ipv4Addr>; in netmask() argument
253 fn set_netmask(&self, netmask: net::Ipv4Addr) -> Result<()>; in set_netmask()
324 fn ip_addr(&self) -> Result<net::Ipv4Addr> { in ip_addr() argument
342 fn set_ip_addr(&self, ip_addr: net::Ipv4Addr) -> Result<()> { in set_ip_addr()
359 fn netmask(&self) -> Result<net::Ipv4Addr> { in netmask() argument
381 fn set_netmask(&self, netmask: net::Ipv4Addr) -> Result<()> { in set_netmask()
559 fn ip_addr(&self) -> Result<net::Ipv4Addr> { in ip_addr() argument
560 Ok(net::Ipv4Addr::new(1, 2, 3, 4)) in ip_addr()
563 fn set_ip_addr(&self, _: net::Ipv4Addr) -> Result<()> { in set_ip_addr()
567 fn netmask(&self) -> Result<net::Ipv4Addr> { in netmask() argument
568 Ok(net::Ipv4Addr::new(255, 255, 255, 252)) in netmask()
571 fn set_netmask(&self, _: net::Ipv4Addr) -> Result<()> { in set_netmask()
661 let ip_addr: net::Ipv4Addr = "100.115.92.5".parse().unwrap(); in tap_configure()
662 let netmask: net::Ipv4Addr = "255.255.255.252".parse().unwrap(); in tap_configure()