Searched refs:ext_ip (Results 1 – 2 of 2) sorted by relevance
| /webrtc/ice/src/external_ip_mapper/ |
| H A D | mod.rs | 35 pub(crate) fn add_ip_mapping(&mut self, loc_ip: IpAddr, ext_ip: IpAddr) -> Result<()> { in add_ip_mapping() 47 self.ip_map.insert(loc_ip_str, ext_ip); in add_ip_mapping() 59 |ext_ip| Ok(*ext_ip), in find_external_ip() 96 let ext_ip = validate_ip_string(ip_pair[0])?; in new() localVariable 98 if ext_ip.is_ipv4() { in new() 99 m.ipv4_mapping.set_sole_ip(ext_ip)?; in new() 101 m.ipv6_mapping.set_sole_ip(ext_ip)?; in new() 105 if ext_ip.is_ipv4() { in new() 110 m.ipv4_mapping.add_ip_mapping(loc_ip, ext_ip)?; in new() 116 m.ipv6_mapping.add_ip_mapping(loc_ip, ext_ip)?; in new()
|
| H A D | external_ip_mapper_test.rs | 181 let ext_ip = m.find_external_ip("10.0.0.1")?; in test_external_ip_mapper_find_external_ip_without_explicit_local_ip() localVariable 182 assert_eq!(ext_ip.to_string(), "1.2.3.4", "should match"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip() 185 let ext_ip = m.find_external_ip("fe80::0001")?; // use '0001' instead of '1' on purpse in test_external_ip_mapper_find_external_ip_without_explicit_local_ip() localVariable 186 assert_eq!(ext_ip.to_string(), "2200::1", "should match"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip() 210 let ext_ip = m.find_external_ip("10.0.0.1")?; in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable 211 assert_eq!(ext_ip.to_string(), "1.2.3.4", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() 213 let ext_ip = m.find_external_ip("10.0.0.2")?; in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable 214 assert_eq!(ext_ip.to_string(), "1.2.3.5", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() 220 let ext_ip = m.find_external_ip("fe80::0001")?; // use '0001' instead of '1' on purpse in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() localVariable 221 assert_eq!(ext_ip.to_string(), "2200::1", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip() [all …]
|