/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 213 .ai_family = AF_UNSPEC, in TEST_F() 238 .ai_family = family, // unsupported family in TEST_F() 254 .ai_family = family, in TEST_F() 313 .ai_family = family, in TEST_F() 339 int ai_family; in TEST_F() member 346 return fmt::format("{:#x}/{}/{}/{}", ai_flags, ai_family, ai_socktype, in TEST_F() 388 .ai_family = config.ai_family, in TEST_F() 470 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() 555 int ai_family; in TEST_F() member 564 SCOPED_TRACE(fmt::format("family: {}", config.ai_family)); in TEST_F() [all …]
|
D | resolv_integration_test.cpp | 774 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 826 .ai_family = AF_UNSPEC, in TEST_F() 868 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 936 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() 963 hints = {.ai_family = AF_UNSPEC}; in TEST_F() 992 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1016 hints = {.ai_family = AF_UNSPEC}; in TEST_F() 1049 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1075 hints = {.ai_family = AF_UNSPEC}; in TEST_F() 1118 addrinfo hints = {.ai_family = AF_INET}; 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 | 156 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
|
D | dnsresolver_binder_test.cpp | 333 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 274 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints() 275 hints->ai_family == PF_INET6)) { in validateHints() 294 if (hints->ai_family != ex.e_af) continue; in validateHints() 333 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext() 335 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext() 336 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext() 347 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext() 352 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext() 356 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext() 419 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo() [all …]
|
D | DnsProxyListener.cpp | 393 if (ai->ai_family != AF_INET) return false; in onlyIPv4Answers() 430 if (ai->ai_family != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses() 460 if ((ai->ai_family != AF_INET) && (ai->ai_family != AF_INET6)) continue; in logDnsQueryResult() 468 LOG(DEBUG) << __func__ << ": [" << i << "] " << ai->ai_flags << " " << ai->ai_family in logDnsQueryResult() 573 sa->ai_family = AF_INET6; in synthesizeNat64PrefixWithARecord() 843 bool success = sendBE32(c, ai->ai_flags) && sendBE32(c, ai->ai_family) && in sendaddrinfo() 869 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis() 871 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis() 886 mHints->ai_family = AF_INET; in doDns64Synthesis() 999 int ai_family = 0; in runCommand() local [all …]
|
D | Dns64Configuration.cpp | 154 .ai_family = AF_INET6, in doRfc7050PrefixDiscovery() 180 if (result->ai_family != AF_INET6) { in doRfc7050PrefixDiscovery() 182 << ") plat_prefix/unexpected address family: " << result->ai_family; in doRfc7050PrefixDiscovery()
|
D | res_cache.cpp | 1616 .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 | 423 .ai_family = AF_UNSPEC, in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 440 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 443 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 | 95 .ai_family = AF_UNSPEC, in startServer() 109 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer() 132 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer() 142 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
|
D | dns_responder.cpp | 1218 .ai_family = AF_UNSPEC, in createListeningSocket() 1231 unique_fd fd(socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket() 1243 if (ai_res->ai_family == AF_INET) { in createListeningSocket() 1261 } else if (ai_res->ai_family == AF_INET6) { in createListeningSocket()
|
/packages/modules/DnsResolver/tests/fuzzer/ |
D | resolv_getaddrinfo_fuzzer.cpp | 18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | InternetAddresses.cpp | 73 switch (res[0].ai_family) { in forString()
|
/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()
|