Home
last modified time | relevance | path

Searched refs:IpNet (Results 1 – 6 of 6) sorted by relevance

/webrtc/util/src/vnet/
H A Dinterface.rs9 pub(crate) addrs: Vec<IpNet>,
13 pub fn new(name: String, addrs: Vec<IpNet>) -> Self { in new()
17 pub fn add_addr(&mut self, addr: IpNet) { in add_addr() argument
24 pub fn addrs(&self) -> &[IpNet] { in addrs() argument
28 pub fn convert(addr: SocketAddr, mask: Option<SocketAddr>) -> Result<IpNet> { in convert() argument
58 Ok(IpNet::from_str(&s)?) in convert()
H A Drouter.rs66 async fn add_addrs_to_interface(&mut self, ifc_name: &str, addrs: &[IpNet]) -> Result<()>; in add_addrs_to_interface()
79 pub(crate) ipv4net: IpNet, // read-only
91 ipv4net: IpNet, // read-only
116 async fn add_addrs_to_interface(&mut self, ifc_name: &str, addrs: &[IpNet]) -> Result<()> { in add_addrs_to_interface()
216 let ipv4net: IpNet = config.cidr.parse()?; in new()
429 ipv4net: IpNet, in process_chunks() argument
547 ipnets.push(IpNet::from_str(&format!( in add_nic()
H A Dnet.rs13 use ipnet::IpNet;
128 async fn add_addrs_to_interface(&mut self, ifc_name: &str, addrs: &[IpNet]) -> Result<()> { in add_addrs_to_interface()
451 let mut m: HashMap<String, Vec<IpNet>> = HashMap::new(); in new()
/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()
249 let ipnet = IpNet::from_str("10.1.2.3/24")?; in test_net_virtual_get_all_ipaddrs()
283 let ipnet = IpNet::from_str(&format!("{addr}/24"))?; in test_net_virtual_assign_port()
335 let ipnet = IpNet::from_str(&format!("{DEMO_IP}/24"))?; in test_net_virtual_determine_source_ip()
/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()
/webrtc/util/src/vnet/router/
H A Drouter_test.rs35 async fn add_addrs_to_interface(&mut self, ifc_name: &str, addrs: &[IpNet]) -> Result<()> { in add_addrs_to_interface()