/system/core/libcutils/ |
D | socket_network_client_windows.cpp | 39 struct addrinfo hints; in socket_network_client() local 40 memset(&hints, 0, sizeof(hints)); in socket_network_client() 41 hints.ai_socktype = type; in socket_network_client() 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) { in socket_network_client()
|
D | socket_network_client_unix.cpp | 48 struct addrinfo hints; in socket_network_client_timeout() local 49 memset(&hints, 0, sizeof(hints)); in socket_network_client_timeout() 50 hints.ai_family = AF_UNSPEC; in socket_network_client_timeout() 51 hints.ai_socktype = type; in socket_network_client_timeout() 57 *getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs); in socket_network_client_timeout()
|
/system/extras/multinetwork/ |
D | dnschk.cpp | 38 const struct addrinfo hints = { in main() local 51 args.arg1, nullptr, &hints, &result); in main() 62 rval = getaddrinfo(args.arg1, nullptr, &hints, &result); in main()
|
D | httpurl.cpp | 98 struct addrinfo hints = { in parseUrl() local 110 &hints, &result); in parseUrl() 115 &hints, &result); in parseUrl()
|
/system/netd/resolv/ |
D | libnetd_resolv_test.cpp | 159 const struct addrinfo hints = { in TEST_F() local 170 rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() 189 const struct addrinfo hints = { in TEST_F() local 193 int rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() 234 const struct addrinfo hints = { in TEST_F() local 240 int rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() 316 const struct addrinfo hints = { in TEST_F() local 323 int rv = android_getaddrinfofornetcontext("localhost", config.servname, &hints, in TEST_F() 346 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local 347 int rv = android_getaddrinfofornetcontext("v4only", nullptr, &hints, &mNetcontext, &result); in TEST_F() [all …]
|
D | resolver_test.cpp | 75 const addrinfo* hints, unsigned netid, unsigned mark, 88 const struct addrinfo* hints) { in safe_getaddrinfo() argument 90 if (getaddrinfo(node, service, hints, &result) != 0) { in safe_getaddrinfo() 628 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local 629 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F() 685 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local 693 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F() 706 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F() 728 ScopedAddrinfo result = safe_getaddrinfo(host_name_normal, nullptr, &hints); in TEST_F() 759 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local [all …]
|
D | getaddrinfo.cpp | 258 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints, in getaddrinfo_numeric() argument 260 hints.ai_flags = AI_NUMERICHOST; in getaddrinfo_numeric() 268 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result); in getaddrinfo_numeric() 272 const struct addrinfo* hints, in android_getaddrinfofornetcontext() argument 301 if (hints) { in android_getaddrinfofornetcontext() 303 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in android_getaddrinfofornetcontext() 307 if (hints->ai_flags & ~AI_MASK) { 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() 318 ai = *hints; in android_getaddrinfofornetcontext()
|
D | Dns64Configuration.cpp | 146 const struct addrinfo hints = { in doRfc7050PrefixDiscovery() local 156 android_getaddrinfofornetcontext(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res); in doRfc7050PrefixDiscovery()
|
D | DnsProxyListener.cpp | 508 addrinfo* hints, in GetAddrInfoHandler() argument 510 : mClient(c), mHost(host), mService(service), mHints(hints), mNetContext(netcontext) {} in GetAddrInfoHandler() 735 addrinfo* hints = nullptr; in runCommand() local 753 hints = (addrinfo*) calloc(1, sizeof(addrinfo)); in runCommand() 754 hints->ai_flags = ai_flags; in runCommand() 755 hints->ai_family = ai_family; in runCommand() 756 hints->ai_socktype = ai_socktype; in runCommand() 757 hints->ai_protocol = ai_protocol; in runCommand() 761 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext); in runCommand()
|
D | DnsProxyListener.h | 50 GetAddrInfoHandler(SocketClient* c, char* host, char* service, addrinfo* hints,
|
D | resolv_private.h | 231 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
|
D | PrivateDnsConfiguration.cpp | 42 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_flags = AI_NUMERICHOST | AI_NUMERICSERV}; in parseServer() local 45 int err = getaddrinfo(server, "853", &hints, &res); in parseServer()
|
D | dnsresolver_binder_test.cpp | 210 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local 211 int status = getaddrinfo(config.hostname.c_str(), nullptr, &hints, &result); in TEST_F()
|
D | res_cache.cpp | 1739 const addrinfo hints = { in resolv_set_nameservers_for_net() local 1741 int rt = getaddrinfo_numeric(servers[i], sbuf, hints, &nsaddrinfo[i]); in resolv_set_nameservers_for_net()
|
/system/hardware/interfaces/net/netd/testutils/ |
D | VtsHalNetNetdTestUtils.cpp | 97 addrinfo *ai, hints = {.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV}; in checkReachability() local 98 int ret = getaddrinfo(addrStr, "53", &hints, &ai); in checkReachability()
|
/system/extras/libperfmgr/tests/ |
D | HintManagerTest.cc | 207 std::vector<std::string> hints = hm.GetHints(); in TEST_F() local 209 EXPECT_EQ(2u, hints.size()); in TEST_F() 210 EXPECT_NE(std::find(hints.begin(), hints.end(), "INTERACTION"), hints.end()); in TEST_F() 211 EXPECT_NE(std::find(hints.begin(), hints.end(), "LAUNCH"), hints.end()); in TEST_F()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 59 const addrinfo hints = { in forString() local 63 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 100 struct addrinfo hints, *ai; in string_to_ip() local 107 memset(&hints, 0, sizeof(hints)); in string_to_ip() 108 hints.ai_family = AF_UNSPEC; in string_to_ip() 109 hints.ai_flags = AI_NUMERICHOST; in string_to_ip() 110 hints.ai_socktype = SOCK_DGRAM; in string_to_ip() 112 ret = getaddrinfo(string, NULL, &hints, &ai); in string_to_ip()
|
/system/netd/server/ |
D | NetdConstants.cpp | 105 addrinfo hints = { in parsePrefix() local 108 int ret = getaddrinfo(addressString.c_str(), nullptr, &hints, &res); in parsePrefix()
|
D | SockDiagTest.cpp | 217 addrinfo hints = { .ai_flags = AI_NUMERICHOST }, *src, *dst; in makeDiagMessage() local 218 EXPECT_EQ(0, getaddrinfo(srcstr, nullptr, &hints, &src)); in makeDiagMessage() 219 EXPECT_EQ(0, getaddrinfo(dststr, nullptr, &hints, &dst)); in makeDiagMessage()
|
D | SockDiag.cpp | 136 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; in sendDumpRequest() local 143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { in sendDumpRequest()
|
D | TetherController.cpp | 363 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; in setDnsForwarders() local 364 int ret = getaddrinfo(servers[i], nullptr, &hints, &res); in setDnsForwarders()
|
/system/extras/libperfmgr/tools/ |
D | ConfigVerifier.cc | 105 std::vector<std::string> hints = hm->GetHints(); in execConfig() local 106 for (const auto& hint : hints) { in execConfig()
|
/system/extras/libperfmgr/ |
D | HintManager.cc | 80 std::vector<std::string> hints; in GetHints() local 82 hints.push_back(action.first); in GetHints() 84 return hints; in GetHints()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 902 struct addrinfo hints; in network_connect() local 903 memset(&hints, 0, sizeof(hints)); in network_connect() 904 hints.ai_family = AF_UNSPEC; in network_connect() 905 hints.ai_socktype = type; in network_connect() 906 hints.ai_protocol = GetSocketProtocolFromSocketType(type); in network_connect() 920 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { in network_connect()
|