Searched refs:nat (Results 1 – 9 of 9) sorted by relevance
| /webrtc/util/src/vnet/nat/ |
| H A D | nat_test.rs | 15 let nat = NetworkAddressTranslator::new(NatConfig { in test_nat_type_default() localVariable 21 nat.nat_type.mapping_behavior, in test_nat_type_default() 26 nat.nat_type.filtering_behavior, in test_nat_type_default() 42 let nat = NetworkAddressTranslator::new(NatConfig { in test_nat_mapping_behavior_full_cone_nat() localVariable 86 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_full_cone_nat() 95 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_full_cone_nat() 156 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_addr_restricted_cone_nat() 165 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_addr_restricted_cone_nat() 174 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_addr_restricted_cone_nat() 235 let result = nat.translate_inbound(&iec).await; in test_nat_mapping_behavior_port_restricted_cone_nat() [all …]
|
| /webrtc/ice/src/agent/ |
| H A D | agent_vnet_test.rs | 69 _nat_type0: nat::NatType, in build_simple_vnet() 70 _nat_type1: nat::NatType, in build_simple_vnet() 118 nat_type0: nat::NatType, in build_vnet() 119 nat_type1: nat::NatType, in build_vnet() 475 let nat_type = nat::NatType { in test_connectivity_simple_vnet_full_cone_nats_on_both_ends() 537 let nat_type = nat::NatType { in test_connectivity_vnet_full_cone_nats_on_both_ends() 599 let nat_type = nat::NatType { in test_connectivity_vnet_symmetric_nats_on_both_ends() 645 let nat_type0 = nat::NatType { in test_connectivity_vnet_1to1_nat_with_host_candidate_vs_symmetric_nats() 650 let nat_type1 = nat::NatType { in test_connectivity_vnet_1to1_nat_with_host_candidate_vs_symmetric_nats() 698 let nat_type0 = nat::NatType { in test_connectivity_vnet_1to1_nat_with_srflx_candidate_vs_symmetric_nats() [all …]
|
| H A D | agent_transport_test.rs | 50 let nat_type0 = nat::NatType { in test_remote_local_addr() 51 mode: nat::NatMode::Nat1To1, in test_remote_local_addr() 55 let nat_type1 = nat::NatType { in test_remote_local_addr() 56 mode: nat::NatMode::Nat1To1, in test_remote_local_addr()
|
| H A D | agent_gather_test.rs | 130 nat_type: Some(nat::NatType { in test_vnet_gather_with_nat_1to1_as_host_candidates() 131 mode: nat::NatMode::Nat1To1, in test_vnet_gather_with_nat_1to1_as_host_candidates() 246 nat_type: Some(nat::NatType { in test_vnet_gather_with_nat_1to1_as_srflx_candidates() 247 mode: nat::NatMode::Nat1To1, in test_vnet_gather_with_nat_1to1_as_srflx_candidates() 389 let nat_type = nat::NatType { in test_vnet_gather_turn_connection_leak() 390 mapping_behavior: nat::EndpointDependencyType::EndpointAddrPortDependent, in test_vnet_gather_turn_connection_leak() 391 filtering_behavior: nat::EndpointDependencyType::EndpointAddrPortDependent, in test_vnet_gather_turn_connection_leak() 432 nat_type: Some(nat::NatType { in test_vnet_gather_muxed_udp() 433 mode: nat::NatMode::Nat1To1, in test_vnet_gather_muxed_udp()
|
| H A D | agent_test.rs | 526 let nat_type = nat::NatType { in test_connectivity_lite() 527 mapping_behavior: nat::EndpointDependencyType::EndpointIndependent, in test_connectivity_lite() 528 filtering_behavior: nat::EndpointDependencyType::EndpointIndependent, in test_connectivity_lite()
|
| /webrtc/util/src/vnet/ |
| H A D | mod.rs | 6 pub mod nat; module
|
| H A D | router.rs | 8 use crate::vnet::nat::*; 81 pub(crate) nat: NetworkAddressTranslator, // read-only field 132 match router_internal.nat.translate_inbound(&*c).await { in on_inbound_chunk() 202 router_internal.nat = NetworkAddressTranslator::new(NatConfig { in set_router() 507 if let Some(to_parent) = ri.nat.translate_outbound(&*c).await? { in process_chunks()
|
| /webrtc/util/src/vnet/router/ |
| H A D | router_test.rs | 724 assert_eq!(ri.nat.mapped_ips.len(), 3, "should be 3"); in test_router_static_ips_1to1_nat() 725 assert_eq!(ri.nat.mapped_ips[0].to_string(), "1.2.3.1", "should match"); in test_router_static_ips_1to1_nat() 726 assert_eq!(ri.nat.mapped_ips[1].to_string(), "1.2.3.2", "should match"); in test_router_static_ips_1to1_nat() 727 assert_eq!(ri.nat.mapped_ips[2].to_string(), "1.2.3.3", "should match"); in test_router_static_ips_1to1_nat() 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/turn/src/server/ |
| H A D | server_test.rs | 143 nat_type: Some(nat::NatType { in build_vnet() 144 mapping_behavior: nat::EndpointDependencyType::EndpointIndependent, in build_vnet() 145 filtering_behavior: nat::EndpointDependencyType::EndpointIndependent, in build_vnet()
|