Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DIpSecManagerTunnelTest.java32 import static android.system.OsConstants.AF_INET;
221 expectedPacketSize += innerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
232 expectedPacketSize += outerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
439 InetAddress localInner = innerFamily == AF_INET ? LOCAL_INNER_4 : LOCAL_INNER_6;
440 InetAddress remoteInner = innerFamily == AF_INET ? REMOTE_INNER_4 : REMOTE_INNER_6;
442 InetAddress localOuter = outerFamily == AF_INET ? LOCAL_OUTER_4 : LOCAL_OUTER_6;
443 InetAddress remoteOuter = outerFamily == AF_INET ? REMOTE_OUTER_4 : REMOTE_OUTER_6;
519 InetAddress localInner = innerFamily == AF_INET ? LOCAL_INNER_4 : LOCAL_INNER_6;
520 InetAddress remoteInner = innerFamily == AF_INET ? REMOTE_INNER_4 : REMOTE_INNER_6;
522 InetAddress localOuter = outerFamily == AF_INET ? LOCAL_OUTER_4 : LOCAL_OUTER_6;
[all …]
DConnectivityManagerTest.java38 import static android.system.OsConstants.AF_INET;
891 if (family == AF_INET && addr instanceof Inet4Address) return addr; in getAddrByName()
1028 try (Socket s = getConnectedSocket(network, TEST_HOST, HTTP_PORT, AF_INET)) { in testCreateTcpKeepalive() argument
1144 final InetAddress dstAddr = getAddrByName(TEST_HOST, AF_INET); in createConcurrentNattSocketKeepalives()
1168 AF_INET)) { in createConcurrentTcpSocketKeepalives()
DIpSecBaseTest.java101 domain = OsConstants.AF_INET; in getDomain()
/cts/tests/tests/net/native/dns/
DNativeDnsAsyncTest.cpp112 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST()
113 expectAnswersValid(fd1, AF_INET, ns_r_noerror); in TEST()
143 expectAnswersValid(fd2, AF_INET, ns_r_noerror); in TEST()
144 expectAnswersValid(fd1, AF_INET, ns_r_noerror); in TEST()
179 expectAnswersValid(fd2, AF_INET, ns_r_nxdomain); in TEST()
180 expectAnswersValid(fd1, AF_INET, ns_r_nxdomain); in TEST()
211 expectAnswersValid(fd, AF_INET, ns_r_noerror); in TEST()
/cts/tests/tests/net/jni/
DNativeDnsJni.c51 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns()
84 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns()
108 sa4.sin_family = AF_INET; in Java_android_net_cts_DnsTest_testNativeDns()
110 inet_pton(AF_INET, GoogleDNSIpV4Address, &(sa4.sin_addr)); in Java_android_net_cts_DnsTest_testNativeDns()
DNativeMultinetworkJni.cpp158 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck()
164 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNqueryCheck()
187 EXPECT_EQ(env, 0, expectAnswersValid(env, fd2, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
189 EXPECT_EQ(env, 0, expectAnswersValid(env, fd1, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
219 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_nxdomain), in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck()
234 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_nxdomain), in Java_android_net_cts_MultinetworkApiTest_runResNnxDomainCheck()
270 EXPECT_EQ(env, 0, expectAnswersValid(env, fd, AF_INET, ns_r_noerror), in Java_android_net_cts_MultinetworkApiTest_runResNapiMalformedCheck()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DChildSessionParamsTest.java19 import static android.system.OsConstants.AF_INET;
162 .addInternalAddressRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq()
167 .addInternalDnsServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq()
169 .addInternalDhcpServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq()
170 .addInternalDhcpServerRequest(AF_INET) in testBuildChildSessionParamsWithConfigReq()
DIkeSessionParamsTest.java26 import static android.system.OsConstants.AF_INET;
227 .addPcscfServerRequest(AF_INET) in testSetPcscfConfigRequests()
DIkeSessionTestBase.java19 import static android.system.OsConstants.AF_INET;
290 .addInternalAddressRequest(AF_INET) in buildTunnelModeChildSessionParams()
/cts/suite/audio_quality/lib/src/
DClientSocket.cpp43 mSocket = socket(AF_INET, SOCK_STREAM, 0); in init()
57 serverAddr.sin_family = AF_INET; in init()
59 if (inet_pton(AF_INET, hostIp, &serverAddr.sin_addr) != 1) { in init()
/cts/tests/tests/net/native/qtaguid/src/
DNativeQtaguidTest.cpp93 int sockfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
123 checkNoSocketPointerLeaks(AF_INET); in TEST()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/
DVpnTestHelper.java19 import static android.system.OsConstants.AF_INET;
184 FileDescriptor socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in checkPing()
234 socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in tryPosixConnect()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/
Dpoc.c72 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/
Dpoc.c75 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2471/
Dpoc.c134 fd = socket(AF_INET, SOCK_STREAM, 0); in main()
/cts/suite/audio_quality/test_description/
Dprocessing_main.py208 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py193 dummysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
210 link = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
/cts/apps/CameraITS/pymodules/its/
Ddevice.py120 socket_lock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
182 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java331 s = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in checkPing()