Home
last modified time | relevance | path

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

/webrtc/ice/src/agent/
H A Dagent_gather_test.rs21 let local_ips = local_interfaces( in test_vnet_gather_no_local_ip_address() localVariable
28 assert!(local_ips.is_empty(), "should return no local IP"); in test_vnet_gather_no_local_ip_address()
53 let local_ips = in test_vnet_gather_dynamic_ip_address() localVariable
55 assert!(!local_ips.is_empty(), "should have one local IP"); in test_vnet_gather_dynamic_ip_address()
57 for ip in &local_ips { in test_vnet_gather_dynamic_ip_address()
87 let local_ips = in test_vnet_gather_listen_udp() localVariable
91 for ip in local_ips { in test_vnet_gather_listen_udp()
342 let local_ips = in test_vnet_gather_with_interface_filter() localVariable
345 local_ips.is_empty(), in test_vnet_gather_with_interface_filter()
363 let local_ips = in test_vnet_gather_with_interface_filter() localVariable
[all …]
H A Dagent_gather.rs391 let local_ips = in gather_candidates_local_udp_mux() localVariable
402 local_ips in gather_candidates_local_udp_mux()
416 .or_else(|| local_ips.iter().copied().next()); in gather_candidates_local_udp_mux()
/webrtc/util/src/vnet/
H A Dnat.rs65 pub(crate) local_ips: Vec<IpAddr>, // local IPv4, required only when the mode is NATModeNAT1To1 field
96 pub(crate) local_ips: Vec<IpAddr>, // local IPv4, required only when the mode is NATModeNAT1To1 field
116 if config.mapped_ips.len() != config.local_ips.len() { in new()
131 local_ips: config.local_ips, in new()
139 for (i, ip) in self.local_ips.iter().enumerate() { in get_paired_mapped_ip()
150 return self.local_ips.get(i); in get_paired_local_ip()
H A Drouter.rs171 let mut local_ips = vec![]; in set_router() localVariable
181 local_ips.push(*loc_ip); in set_router()
206 local_ips, in set_router()
/webrtc/util/src/vnet/router/
H A Drouter_test.rs643 let local_ips = vec!["192.168.0.1", "192.168.0.2", "192.168.0.3"]; in test_router_static_ips_static_ip_local_ip_mapping() localVariable
648 assert_eq!(local_ips[i], loc_ip.to_string(), "should match"); in test_router_static_ips_static_ip_local_ip_mapping()
729 assert_eq!(3, ri.nat.local_ips.len(), "should be 3"); in test_router_static_ips_1to1_nat()
731 ri.nat.local_ips[0].to_string(), in test_router_static_ips_1to1_nat()
736 ri.nat.local_ips[1].to_string(), in test_router_static_ips_1to1_nat()
741 ri.nat.local_ips[2].to_string(), in test_router_static_ips_1to1_nat()
/webrtc/util/src/vnet/nat/
H A Dnat_test.rs480 local_ips: vec![IpAddr::from_str("10.0.0.1")?], in test_nat1to1_bahavior_one_mapping()
526 local_ips: vec![IpAddr::from_str("10.0.0.1")?, IpAddr::from_str("10.0.0.2")?], in test_nat1to1_bahavior_more_mapping()
604 local_ips: vec![IpAddr::from_str("10.0.0.1")?], in test_nat1to1_bahavior_failure()
616 local_ips: vec![IpAddr::from_str("10.0.0.1")?], in test_nat1to1_bahavior_failure()