Searched refs:has_ipaddr (Results 1 – 2 of 2) sorted by relevance
199 pub(crate) fn has_ipaddr(&self, ip: IpAddr) -> bool { in has_ipaddr() method233 } else if self.has_ipaddr(ip) { in allocate_local_addr()328 if !self.has_ipaddr(local_addr.ip()) { in bind()
227 assert!(net.has_ipaddr(ip), "the IP addr {ip} should exist"); in test_net_virtual_has_ipaddr()230 assert!(net.has_ipaddr(ip), "the IP addr {ip} should exist"); in test_net_virtual_has_ipaddr()233 assert!(!net.has_ipaddr(ip), "the IP addr {ip} should exist"); in test_net_virtual_has_ipaddr()