Home
last modified time | relevance | path

Searched refs:ipVersion (Results 1 – 23 of 23) sorted by relevance

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSession.java364 @IkeSessionParams.EspIpVersion int ipVersion, in setNetwork() argument
371 if ((ipVersion == ESP_IP_VERSION_IPV4 && encapType == ESP_ENCAP_TYPE_NONE) in setNetwork()
372 || (ipVersion == ESP_IP_VERSION_IPV6 && encapType == ESP_ENCAP_TYPE_UDP)) { in setNetwork()
378 ipVersion, encapType, keepaliveDelaySeconds); in setNetwork() local
DIkeSessionParams.java2101 public Builder setIpVersion(@EspIpVersion int ipVersion) { in setIpVersion() argument
2102 if (ESP_IP_VERSION_AUTO != ipVersion in setIpVersion()
2103 && ESP_IP_VERSION_IPV4 != ipVersion in setIpVersion()
2104 && ESP_IP_VERSION_IPV6 != ipVersion) { in setIpVersion()
2105 throw new IllegalArgumentException("Invalid IP version : " + ipVersion); in setIpVersion()
2107 mIpVersion = ipVersion; in setIpVersion()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfUtils.java64 private static String makeProgPath(boolean downstream, int ipVersion, boolean ether) { in makeProgPath() argument
67 + ipVersion + "_" in makeProgPath()
DBpfCoordinator.java142 private static String makeMapPath(boolean downstream, int ipVersion) { in makeMapPath() argument
143 return makeMapPath((downstream ? "downstream" : "upstream") + ipVersion); in makeMapPath()
/packages/modules/Connectivity/bpf_progs/
Dnetd.c269 uint8_t ipVersion = 0; in do_packet_tracing() local
274 ipVersion = 4; in do_packet_tracing()
278 ipVersion = 6; in do_packet_tracing()
329 pkt->ipVersion = ipVersion; in do_packet_tracing()
Dnetd.h89 uint8_t ipVersion; // 4=IPv4, 6=IPv6, 0=unknown member
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/audio/
DRtcpXrEncoder.h52 ipVersion(-1), in tTTLReport()
61 uint8_t ipVersion; member
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTraceHandler.cpp85 ipVersion(pkt.ipVersion) { in BundleKey()
106 (x).ifindex, (x).uid, (x).tag, (x).egress, (x).ipProto, (x).ipVersion, \
DNetworkTracePollerTest.cpp82 os << ", ip=" << static_cast<int>(info.ipVersion); in operator <<()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java645 int ipVersion, in onNetworkSetByUser() argument
662 + ipVersion in onNetworkSetByUser()
689 mIpVersion = ipVersion; in onNetworkSetByUser()
1087 private boolean isIpVersionRequired(final int ipVersion) { in isIpVersionRequired() argument
1088 return ipVersion == mIpVersion; in isIpVersionRequired()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/
DNetworkTraceHandler.h45 uint8_t ipVersion; member
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionMobikeTest.java253 int ipVersion, in setNetworkAndVerifyConnectionInfoChange() argument
257 ikeSession.setNetwork(tunNetworkContext.tunNetwork, ipVersion, ESP_ENCAP_TYPE_AUTO, in setNetworkAndVerifyConnectionInfoChange()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DRtcpXrEncoder.cpp464 if (ttlReport->ipVersion == -1) in encodeStatisticSummeryReport()
468 else if (ttlReport->ipVersion == IPV4) in encodeStatisticSummeryReport()
/packages/modules/Wifi/framework/java/android/net/wifi/
DQosPolicyParams.java245 @IpVersion int ipVersion, int dstPort, @Nullable byte[] flowLabel, in QosPolicyParams() argument
257 this.mIpVersion = ipVersion; in QosPolicyParams()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java907 @IkeSessionParams.EspIpVersion int ipVersion, in setNetwork() argument
914 if (ipVersion != ESP_IP_VERSION_AUTO in setNetwork()
915 && ipVersion != ESP_IP_VERSION_IPV4 in setNetwork()
916 && ipVersion != ESP_IP_VERSION_IPV6) { in setNetwork()
917 throw new IllegalArgumentException("Invalid IP version: " + ipVersion); in setNetwork()
945 new NetworkParams(network, ipVersion, encapType, keepaliveDelaySeconds)); in setNetwork()
986 public final int ipVersion; field in IkeSessionStateMachine.NetworkParams
989 NetworkParams(Network network, int ipVersion, int encapType, in NetworkParams() argument
992 this.ipVersion = ipVersion; in NetworkParams()
1521 params.ipVersion, in processStateMessage()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java446 private void verifyIpFamilySelection(int ipVersion, boolean remoteHasV4, boolean remoteHasV6, in verifyIpFamilySelection() argument
448 verifyIpFamilySelection(ipVersion, ESP_ENCAP_TYPE_AUTO, remoteHasV4, remoteHasV6, in verifyIpFamilySelection()
453 int ipVersion, int encapType, boolean remoteHasV4, boolean remoteHasV6, in verifyIpFamilySelection() argument
488 when(mMockIkeParams.getIpVersion()).thenReturn(ipVersion); in verifyIpFamilySelection()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java1071 int ipVersion = (ipTypeAndLength & 0xf0) >> 4; in decodeFullPacket() local
1072 if (ipVersion != 4) { in decodeFullPacket()
1074 DhcpErrorEvent.L3_NOT_IPV4, "Invalid IP version %d", ipVersion); in decodeFullPacket()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp7692 for (const auto& [ipVersion, expectedDnsReply] : testPairs) { in TEST_F()
7693 SCOPED_TRACE(fmt::format("ConnectivityType: {}", static_cast<int>(ipVersion))); in TEST_F()
7697 CreateScopedPhysicalNetwork(ipVersion, "SysDefault"); in TEST_F()
7699 CreateScopedPhysicalNetwork(ipVersion, "AppDefault"); in TEST_F()
7700 ScopedVirtualNetwork vpn = CreateScopedVirtualNetwork(ipVersion, false, "Vpn"); in TEST_F()
7708 setupDns(ipVersion, &sysDefaultNetwork, host_name, ipv4_addr, ipv6_addr); in TEST_F()
7711 setupDns(ipVersion, &appDefaultNetwork, host_name, ipv4_addr, ipv6_addr); in TEST_F()
7713 auto vpnDnsSv = setupDns(ipVersion, &vpn, host_name, ipv4_addr, ipv6_addr); in TEST_F()
7937 for (const auto& [ipVersion, expectedDnsReply] : testPairs) { in TEST_F()
7938 SCOPED_TRACE(fmt::format("ConnectivityType: {}", static_cast<int>(ipVersion))); in TEST_F()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecManagerTunnelTest.java326 private UdpEncapsulationSocket openUdpEncapsulationSocket(int ipVersion) throws Exception { in openUdpEncapsulationSocket() argument
327 if (ipVersion == AF_INET) { in openUdpEncapsulationSocket()
/packages/modules/NetworkStack/src/android/net/apf/
DLegacyApfFilter.java2210 final int ipVersion = sentKeepalivePacket.srcAddress.length == 4 ? 4 : 6; in addTcpKeepalivePacketFilter() local
2211 mKeepalivePackets.put(slot, (ipVersion == 4) in addTcpKeepalivePacketFilter()
DApfFilter.java2674 final int ipVersion = sentKeepalivePacket.srcAddress.length == 4 ? 4 : 6; in addTcpKeepalivePacketFilter() local
2675 mKeepalivePackets.put(slot, (ipVersion == 4) in addTcpKeepalivePacketFilter()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java4043 final int ipVersion = QosPolicyParams.IP_VERSION_4; in testAddQosPolicies() local
4046 .setIpVersion(ipVersion) in testAddQosPolicies()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHalAidlImpl.java3026 classifierParams.ipVersion = params.getIpVersion() == QosPolicyParams.IP_VERSION_4 in frameworkToHalQosPolicyScsData()