Home
last modified time | relevance | path

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

/system/netd/resolv/
Dlibnetd_resolv_test.cpp161 .ai_family = AF_UNSPEC, in TEST_F()
190 .ai_family = family, // unsupported family in TEST_F()
235 .ai_family = family, in TEST_F()
258 int ai_family; in TEST_F() member
264 return StringPrintf("0x%x/%d/%d/%s", ai_flags, ai_family, ai_socktype, in TEST_F()
318 .ai_family = config.ai_family, in TEST_F()
346 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F()
372 int ai_family; in TEST_F() member
380 SCOPED_TRACE(StringPrintf("family: %d", config.ai_family)); in TEST_F()
384 const struct addrinfo hints = {.ai_family = config.ai_family}; in TEST_F()
[all …]
Dgetaddrinfo.cpp287 .ai_family = PF_UNSPEC, in android_getaddrinfofornetcontext()
312 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in android_getaddrinfofornetcontext()
313 hints->ai_family == PF_INET6)) { in android_getaddrinfofornetcontext()
326 if (ai.ai_family != ex.e_af) continue; in android_getaddrinfofornetcontext()
343 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext()
345 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext()
346 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext()
357 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext()
362 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext()
366 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext()
[all …]
DDns64Configuration.cpp147 .ai_family = AF_INET6, in doRfc7050PrefixDiscovery()
172 if (result->ai_family != AF_INET6) { in doRfc7050PrefixDiscovery()
174 result->ai_family); in doRfc7050PrefixDiscovery()
DDnsProxyListener.cpp331 if (ai->ai_family != AF_INET) return false; in onlyIPv4Answers()
368 if (ai->ai_family != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses()
398 if ((ai->ai_family != AF_INET) && (ai->ai_family != AF_INET6)) continue; in logDnsQueryResult()
403 LOG(DEBUG) << __func__ << ": [" << i << "] " << ai->ai_flags << " " << ai->ai_family in logDnsQueryResult()
477 ai->ai_family = AF_INET6; in synthesizeNat64PrefixWithARecord()
573 sendBE32(c, ai->ai_family) && in sendaddrinfo()
596 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis()
598 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis()
613 mHints->ai_family = AF_INET; in doDns64Synthesis()
737 int ai_family = strtol(argv[4], nullptr, 10); in runCommand() local
[all …]
Dresolver_test.cpp628 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
685 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
759 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
765 hints = {.ai_family = AF_INET6}; in TEST_F()
779 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
784 hints = {.ai_family = AF_INET6}; in TEST_F()
797 addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
802 hints = {.ai_family = AF_INET6}; in TEST_F()
834 addrinfo hints = {.ai_family = AF_INET6}; in TEST_F()
869 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F()
[all …]
DPrivateDnsConfiguration.cpp42 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV}; in parseServer()
Ddnsresolver_binder_test.cpp210 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
Dres_cache.cpp1740 .ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM, .ai_flags = AI_NUMERICHOST}; in resolv_set_nameservers_for_net()
/system/core/libcutils/
Dsocket_network_client_unix.cpp50 hints.ai_family = AF_UNSPEC; in socket_network_client_timeout()
65 int s = socket(addr->ai_family, type, addr->ai_protocol); in socket_network_client_timeout()
Dsocket_network_client_windows.cpp54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client()
/system/netd/server/
DNetdConstants.cpp116 switch (res[0].ai_family) { in parsePrefix()
146 *family = res[0].ai_family; in parsePrefix()
DSockDiag.cpp152 if (res->ai_family == AF_INET && family == AF_INET) { in sendDumpRequest()
156 } else if (res->ai_family == AF_INET && family == AF_INET6) { in sendDumpRequest()
161 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { in sendDumpRequest()
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp193 .ai_family = AF_UNSPEC, in startServer()
208 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer()
232 .ai_family = AF_UNSPEC, in startServer()
244 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
Ddns_responder.cpp593 .ai_family = AF_UNSPEC, in startServer()
607 socket_.reset(socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in startServer()
/system/extras/multinetwork/
Ddnschk.cpp39 .ai_family = args.family, in main()
Dhttpurl.cpp99 .ai_family = args.family, in parseUrl()
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp103 int sock = socket(ai->ai_family, SOCK_DGRAM, 0); in checkReachability()
/system/netd/libnetdutils/
DInternetAddresses.cpp71 switch (res[0].ai_family) { in forString()
/system/core/libnetutils/
Difc_utils.c108 hints.ai_family = AF_UNSPEC; in string_to_ip()
/system/core/adb/
Dsysdeps_win32.cpp904 hints.ai_family = AF_UNSPEC; in network_connect()
936 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()
/system/netd/tests/
Dbinder_test.cpp790 .ai_family = AF_UNSPEC, in interfaceHasAddress()