Home
last modified time | relevance | path

Searched refs:ai_family (Results 1 – 15 of 15) sorted by relevance

/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp210 .ai_family = AF_UNSPEC, in TEST_F()
235 .ai_family = family, // unsupported family in TEST_F()
251 .ai_family = family, in TEST_F()
310 .ai_family = family, in TEST_F()
336 int ai_family; in TEST_F() member
343 return StringPrintf("0x%x/%d/%d/%s", ai_flags, ai_family, ai_socktype, in TEST_F()
385 .ai_family = config.ai_family, in TEST_F()
467 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F()
552 int ai_family; in TEST_F() member
561 SCOPED_TRACE(StringPrintf("family: %d", config.ai_family)); in TEST_F()
[all …]
Dresolv_integration_test.cpp776 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
809 .ai_family = AF_UNSPEC, in TEST_F()
851 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
926 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
932 hints = {.ai_family = AF_INET6}; in TEST_F()
946 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
951 hints = {.ai_family = AF_INET6}; in TEST_F()
964 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
969 hints = {.ai_family = AF_INET6}; in TEST_F()
1046 addrinfo hints = {.ai_family = AF_INET6}; in TEST_F()
[all …]
Dresolv_gold_test.cpp194 .ai_family = args.family(), in VerifyGetAddrInfo()
292 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
320 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
379 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F()
Dresolv_callback_unit_test.cpp153 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
Ddnsresolver_binder_test.cpp397 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp289 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints()
290 hints->ai_family == PF_INET6)) { in validateHints()
309 if (hints->ai_family != ex.e_af) continue; in validateHints()
348 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext()
350 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext()
351 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext()
362 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext()
367 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext()
371 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext()
434 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo()
[all …]
DDnsProxyListener.cpp395 if (ai->ai_family != AF_INET) return false; in onlyIPv4Answers()
432 if (ai->ai_family != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses()
462 if ((ai->ai_family != AF_INET) && (ai->ai_family != AF_INET6)) continue; in logDnsQueryResult()
467 LOG(DEBUG) << __func__ << ": [" << i << "] " << ai->ai_flags << " " << ai->ai_family in logDnsQueryResult()
541 ai->ai_family = AF_INET6; in synthesizeNat64PrefixWithARecord()
657 bool success = sendBE32(c, ai->ai_flags) && sendBE32(c, ai->ai_family) && in sendaddrinfo()
678 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis()
680 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis()
697 mHints->ai_family = AF_INET; in doDns64Synthesis()
824 int ai_family = strtol(argv[4], nullptr, 10); in runCommand() local
[all …]
DDns64Configuration.cpp155 .ai_family = AF_INET6, in doRfc7050PrefixDiscovery()
181 if (result->ai_family != AF_INET6) { in doRfc7050PrefixDiscovery()
183 << ") plat_prefix/unexpected address family: " << result->ai_family; in doRfc7050PrefixDiscovery()
DPrivateDnsConfiguration.cpp44 .ai_family = AF_UNSPEC, in parseServer()
Dres_cache.cpp1589 .ai_family = AF_UNSPEC, in isValidServer()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c52 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, in Java_android_net_cts_DnsTest_testNativeDns()
57 inet_ntop(current->ai_family, &((struct sockaddr_in6 *)current->ai_addr)->sin6_addr, in Java_android_net_cts_DnsTest_testNativeDns()
85 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, in Java_android_net_cts_DnsTest_testNativeDns()
90 inet_ntop(current->ai_family, &((struct sockaddr_in6 *)current->ai_addr)->sin6_addr, in Java_android_net_cts_DnsTest_testNativeDns()
DNativeMultinetworkJni.cpp400 .ai_family = AF_UNSPEC, in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
417 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
420 res->ai_family, res->ai_socktype, res->ai_protocol, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp99 .ai_family = AF_UNSPEC, in startServer()
113 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer()
136 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer()
146 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
Ddns_responder.cpp1215 .ai_family = AF_UNSPEC, in createListeningSocket()
1229 socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
/packages/modules/adb/
Dsysdeps_win32.cpp1136 hints.ai_family = AF_UNSPEC; in network_connect()
1168 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()