Searched refs:ai_family (Results 1 – 12 of 12) sorted by relevance
/packages/modules/DnsResolver/ |
D | resolv_unit_test.cpp | 208 .ai_family = AF_UNSPEC, in TEST_F() 233 .ai_family = family, // unsupported family in TEST_F() 249 .ai_family = family, in TEST_F() 308 .ai_family = family, in TEST_F() 334 int ai_family; in TEST_F() member 341 return StringPrintf("0x%x/%d/%d/%s", ai_flags, ai_family, ai_socktype, in TEST_F() 383 .ai_family = config.ai_family, in TEST_F() 465 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() 550 int ai_family; in TEST_F() member 559 SCOPED_TRACE(StringPrintf("family: %d", config.ai_family)); in TEST_F() [all …]
|
D | getaddrinfo.cpp | 290 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints() 291 hints->ai_family == PF_INET6)) { in validateHints() 310 if (hints->ai_family != ex.e_af) continue; in validateHints() 349 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext() 351 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext() 352 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext() 363 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext() 368 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext() 372 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext() 435 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo() [all …]
|
D | DnsProxyListener.cpp | 385 if (ai->ai_family != AF_INET) return false; in onlyIPv4Answers() 422 if (ai->ai_family != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses() 452 if ((ai->ai_family != AF_INET) && (ai->ai_family != AF_INET6)) continue; in logDnsQueryResult() 457 LOG(DEBUG) << __func__ << ": [" << i << "] " << ai->ai_flags << " " << ai->ai_family in logDnsQueryResult() 531 ai->ai_family = AF_INET6; in synthesizeNat64PrefixWithARecord() 639 sendBE32(c, ai->ai_family) && in sendaddrinfo() 663 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis() 665 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis() 680 mHints->ai_family = AF_INET; in doDns64Synthesis() 821 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 | resolv_callback_unit_test.cpp | 153 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
|
D | PrivateDnsConfiguration.cpp | 60 .ai_family = AF_UNSPEC, in parseServer()
|
D | res_cache.cpp | 1553 .ai_family = AF_UNSPEC, in isValidServer()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 694 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 727 .ai_family = AF_UNSPEC, in TEST_F() 769 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 844 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 850 hints = {.ai_family = AF_INET6}; in TEST_F() 864 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 869 hints = {.ai_family = AF_INET6}; in TEST_F() 882 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 887 hints = {.ai_family = AF_INET6}; in TEST_F() 919 addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() [all …]
|
D | resolv_gold_test.cpp | 194 .ai_family = args.family(), in VerifyGetAddrInfo() 288 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 316 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 373 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F()
|
D | dnsresolver_binder_test.cpp | 177 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 98 .ai_family = AF_UNSPEC, in startServer() 112 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 | 1185 .ai_family = AF_UNSPEC, in createListeningSocket() 1199 socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
|