Searched refs:inet_pton (Results 1 – 12 of 12) sorted by relevance
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 110 inet_pton(AF_INET, GoogleDNSIpV4Address, &(sa4.sin_addr)); in Java_android_net_cts_DnsTest_testNativeDns() 117 inet_pton(AF_INET6, GoogleDNSIpV6Address2, &(sa6.sin6_addr)); in Java_android_net_cts_DnsTest_testNativeDns() 169 inet_pton(AF_INET6, GoogleDNSIpV6Address, addr6); in Java_android_net_cts_DnsTest_testNativeDns()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 71 if (inet_pton(AF_INET, addrs[0].c_str(), &pair.src) != 1 || in makePair() 72 inet_pton(AF_INET, addrs[1].c_str(), &pair.dst) != 1) { in makePair() 89 if (inet_pton(AF_INET6, addrs[0].c_str(), &pair.src) != 1 || in makePair() 90 inet_pton(AF_INET6, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
|
D | resolv_integration_test.cpp | 1839 ASSERT_TRUE(inet_pton(AF_INET, listen_addr, &tlsServer.sin_addr)); in TEST_F() 3438 inet_pton(AF_INET, "1.2.3.4", &v4addr); in TEST_F() 3445 inet_pton(AF_INET6, "2001:db8::102:304", &v6addr); in TEST_F() 3486 inet_pton(AF_INET6, "64:ff9b::1.2.3.4", &v6addr); in TEST_F() 3503 inet_pton(AF_INET6, "64:ff9b::5.6.7.8", &v6addr); in TEST_F() 3531 inet_pton(AF_INET6, host_addr, &v6addr); in TEST_F() 3570 ASSERT_TRUE(inet_pton(AF_INET, address, &v4addr)); in TEST_F() 3635 inet_pton(AF_INET, config.addr.c_str(), &sin.sin_addr); in TEST_F() 3642 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F() 3720 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F() [all …]
|
D | resolv_tls_unit_test.cpp | 53 if (inet_pton(AF_INET, server, &(sin->sin_addr)) == 1) { in parseServer() 60 if (inet_pton(AF_INET6, server, &(sin6->sin6_addr)) == 1){ in parseServer()
|
D | resolv_cache_unit_test.cpp | 752 ASSERT_TRUE(inet_pton(AF_INET, setup.servers[0].c_str(), &sin.sin_addr)); in TEST_F()
|
/packages/modules/DnsResolver/ |
D | gethnamaddr.cpp | 465 if (inet_pton(af, name, buf) <= 0) { in resolv_gethostbyname() 566 if (inet_pton(AF_INET6, p, &host_addr) > 0) { in netbsd_gethostent_r() 570 if (inet_pton(AF_INET, p, &host_addr) <= 0) continue; in netbsd_gethostent_r()
|
D | DnsProxyListener.cpp | 1210 int result = inet_pton(addrFamily, addrStr, &addr); in runCommand()
|
D | getaddrinfo.cpp | 579 if (inet_pton(afd->a_af, hostname, pton) == 1) { in explore_numeric()
|
D | res_cache.cpp | 1446 if (inet_pton(af, ip_address, addr_buf) != 1) { in resolv_gethostbyaddr_from_cache()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowOs.java | 43 protected static InetAddress inet_pton(int family, String address) { in inet_pton() method in ShadowOs
|
/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 90 EXPECT_EQ(1, inet_pton(ipType, answer.c_str(), pton)); in expectAnswersValid()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 846 if (inet_pton(AF_INET, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata() 852 if (inet_pton(AF_INET6, rdatastr.c_str(), record.rdata.data()) != 1) { in fillRdata()
|