Home
last modified time | relevance | path

Searched refs:hints (Results 1 – 25 of 26) sorted by relevance

12

/system/core/libcutils/
Dsocket_network_client_windows.cpp39 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()
Dsocket_network_client_unix.cpp48 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/
Ddnschk.cpp38 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()
Dhttpurl.cpp98 struct addrinfo hints = { in parseUrl() local
110 &hints, &result); in parseUrl()
115 &hints, &result); in parseUrl()
/system/netd/resolv/
Dlibnetd_resolv_test.cpp159 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 …]
Dresolver_test.cpp75 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 …]
Dgetaddrinfo.cpp258 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()
DDns64Configuration.cpp146 const struct addrinfo hints = { in doRfc7050PrefixDiscovery() local
156 android_getaddrinfofornetcontext(kIPv4OnlyHost, nullptr, &hints, &netcontext, &res); in doRfc7050PrefixDiscovery()
DDnsProxyListener.cpp508 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()
DDnsProxyListener.h50 GetAddrInfoHandler(SocketClient* c, char* host, char* service, addrinfo* hints,
Dresolv_private.h231 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
DPrivateDnsConfiguration.cpp42 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()
Ddnsresolver_binder_test.cpp210 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()
Dres_cache.cpp1739 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/
DVtsHalNetNetdTestUtils.cpp97 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/
DHintManagerTest.cc207 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/
DInternetAddresses.cpp59 const addrinfo hints = { in forString() local
63 const int ret = getaddrinfo(repr.c_str(), nullptr, &hints, &res); in forString()
/system/core/libnetutils/
Difc_utils.c100 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/
DNetdConstants.cpp105 addrinfo hints = { in parsePrefix() local
108 int ret = getaddrinfo(addressString.c_str(), nullptr, &hints, &res); in parsePrefix()
DSockDiagTest.cpp217 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()
DSockDiag.cpp136 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; in sendDumpRequest() local
143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { in sendDumpRequest()
DTetherController.cpp363 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/
DConfigVerifier.cc105 std::vector<std::string> hints = hm->GetHints(); in execConfig() local
106 for (const auto& hint : hints) { in execConfig()
/system/extras/libperfmgr/
DHintManager.cc80 std::vector<std::string> hints; in GetHints() local
82 hints.push_back(action.first); in GetHints()
84 return hints; in GetHints()
/system/core/adb/
Dsysdeps_win32.cpp902 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()

12