/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 210 .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 …]
|
D | resolv_integration_test.cpp | 776 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 …]
|
D | resolv_gold_test.cpp | 194 .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()
|
D | resolv_callback_unit_test.cpp | 153 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
|
D | dnsresolver_binder_test.cpp | 397 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 289 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 …]
|
D | DnsProxyListener.cpp | 395 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 …]
|
D | Dns64Configuration.cpp | 155 .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()
|
D | PrivateDnsConfiguration.cpp | 44 .ai_family = AF_UNSPEC, in parseServer()
|
D | res_cache.cpp | 1589 .ai_family = AF_UNSPEC, in isValidServer()
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 52 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()
|
D | NativeMultinetworkJni.cpp | 400 .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/ |
D | dns_tls_frontend.cpp | 99 .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()
|
D | dns_responder.cpp | 1215 .ai_family = AF_UNSPEC, in createListeningSocket() 1229 socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
|
/packages/modules/adb/ |
D | sysdeps_win32.cpp | 1136 hints.ai_family = AF_UNSPEC; in network_connect() 1168 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()
|