Searched refs:IpNet (Results 1 – 6 of 6) sorted by relevance
| /webrtc/util/src/vnet/ |
| H A D | interface.rs | 9 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 D | router.rs | 66 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 D | net.rs | 13 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 D | net_test.rs | 215 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 D | agent_gather_test.rs | 6 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 D | router_test.rs | 35 async fn add_addrs_to_interface(&mut self, ifc_name: &str, addrs: &[IpNet]) -> Result<()> { in add_addrs_to_interface()
|