Home
last modified time | relevance | path

Searched refs:ipnet (Results 1 – 10 of 10) sorted by relevance

/webrtc/util/src/vnet/
H A Dnet.rs13 use ipnet::IpNet;
97 for ipnet in ifc.addrs() { in determine_source_ip()
98 if (ipnet.addr().is_ipv4() && loc_ip.is_ipv4()) in determine_source_ip()
101 return Some(ipnet.addr()); in determine_source_ip()
188 for ipnet in ifc.addrs() { in get_all_ipaddrs()
189 if (ipv6 && ipnet.addr().is_ipv6()) || (!ipv6 && ipnet.addr().is_ipv4()) { in get_all_ipaddrs()
190 ips.push(ipnet.addr()); in get_all_ipaddrs()
201 for ipnet in ifc.addrs() { in has_ipaddr()
202 let loc_ip = ipnet.addr(); in has_ipaddr()
413 if let Ok(ipnet) = Interface::convert( in new()
[all …]
H A Dinterface.rs2 use ipnet::*;
H A Drouter.rs13 use ipnet::*;
226 if let Ok(ipnet) = Interface::convert( in new()
230 lo0.add_addr(ipnet); in new()
/webrtc/ice/src/util/
H A Dmod.rs116 for ipnet in iface.addrs() { in local_interfaces()
117 let ipaddr = ipnet.addr(); in local_interfaces()
/webrtc/util/src/vnet/net/
H A Dnet_test.rs215 let ipnet = IpNet::from_str("10.1.2.3/24")?; in test_net_virtual_has_ipaddr() localVariable
216 nic.add_addrs_to_interface("eth0", &[ipnet]).await?; in test_net_virtual_has_ipaddr()
249 let ipnet = IpNet::from_str("10.1.2.3/24")?; in test_net_virtual_get_all_ipaddrs() localVariable
250 nic.add_addrs_to_interface("eth0", &[ipnet]).await?; in test_net_virtual_get_all_ipaddrs()
283 let ipnet = IpNet::from_str(&format!("{addr}/24"))?; in test_net_virtual_assign_port() localVariable
284 nic.add_addrs_to_interface("eth0", &[ipnet]).await?; in test_net_virtual_assign_port()
335 let ipnet = IpNet::from_str(&format!("{DEMO_IP}/24"))?; in test_net_virtual_determine_source_ip() localVariable
336 nic.add_addrs_to_interface("eth0", &[ipnet]).await?; in test_net_virtual_determine_source_ip()
/webrtc/util/
H A DCargo.toml28 ipnet = "2.5"
/webrtc/ice/
H A DCargo.toml39 ipnet = "2.5.0"
/webrtc/util/src/
H A Derror.rs109 ParseIpnet(#[from] ipnet::AddrParseError),
/webrtc/ice/src/agent/
H A Dagent_gather_test.rs6 use ipnet::IpNet;
38 let ipnet = IpNet::from_str(cider).map_err(|e| Error::Other(e.to_string()))?; in test_vnet_gather_dynamic_ip_address() localVariable
61 if !ipnet.contains(ip) { in test_vnet_gather_dynamic_ip_address()
/webrtc/
H A DCargo.lock1338 name = "ipnet"
2746 "ipnet",
2848 "ipnet",