Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp213 .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 …]
Dresolv_integration_test.cpp774 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 …]
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.cpp156 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
Ddnsresolver_binder_test.cpp333 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp274 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 …]
DDnsProxyListener.cpp393 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 …]
DDns64Configuration.cpp154 .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()
Dres_cache.cpp1616 .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.cpp423 .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/
Ddns_tls_frontend.cpp95 .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()
Ddns_responder.cpp1218 .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/
Dresolv_getaddrinfo_fuzzer.cpp18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddresses.cpp73 switch (res[0].ai_family) { in forString()
/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()