Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 17 of 17) sorted by relevance

/system/extras/multinetwork/
Ddnschk.cpp38 const struct addrinfo hints = { in main()
42 struct addrinfo *result = nullptr; in main()
77 for (struct addrinfo* rp = result; rp != nullptr; rp = rp->ai_next) { in main()
Dhttpurl.cpp98 struct addrinfo hints = { in parseUrl()
102 struct addrinfo *result = nullptr; in parseUrl()
/system/netd/tests/
Dnetd_test.cpp87 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { in AddrInfo()
97 int init(const char* node, const char* service, const addrinfo& hints) { in init()
117 const addrinfo& operator*() const { return *ai_; } in operator *()
118 const addrinfo* get() const { return ai_; } in get()
119 const addrinfo* operator&() const { return ai_; } in operator &()
123 addrinfo* ai_;
185 std::string ToString(const addrinfo* ai) const { in ToString()
240 addrinfo* result = nullptr; in RunGetAddrInfoStressTest_Binder()
369 addrinfo* result = nullptr; in TEST_F()
446 addrinfo* result = nullptr; in TEST_F()
[all …]
Dbinder_test.cpp452 struct addrinfo *addrinfoList = nullptr; in interfaceHasAddress()
455 const struct addrinfo hints = { in interfaceHasAddress()
/system/core/libcutils/
Dsocket_network_client_unix.c48 struct addrinfo hints; in socket_network_client_timeout()
56 struct addrinfo* addrs; in socket_network_client_timeout()
63 for (struct addrinfo* addr = addrs; addr != NULL; addr = addr->ai_next) { in socket_network_client_timeout()
Dsocket_network_client_windows.c39 struct addrinfo hints; in socket_network_client()
43 struct addrinfo* address = NULL; in socket_network_client()
/system/netd/server/
DNetdConstants.h70 void operator()(struct addrinfo* p) const { in operator()
77 typedef std::unique_ptr<struct addrinfo, struct AddrinfoDeleter> ScopedAddrinfo;
DDnsProxyListener.cpp125 SocketClient *c, char* host, char* service, struct addrinfo* hints, in GetAddrInfoHandler()
182 static bool sendaddrinfo(SocketClient* c, struct addrinfo* ai) { in sendaddrinfo()
226 struct addrinfo* result = NULL; in run()
236 struct addrinfo* ai = result; in run()
251 for (addrinfo* ai = result; ai; ai = ai->ai_next) { in run()
334 struct addrinfo* hints = NULL; in runCommand()
347 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo)); in runCommand()
DDnsProxyListener.h59 struct addrinfo* hints,
71 struct addrinfo* mHints; // owned
DNetdConstants.cpp190 addrinfo *res; in parsePrefix()
191 addrinfo hints = { in parsePrefix()
DSockDiag.cpp136 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; in sendDumpRequest()
137 addrinfo *res; in sendDumpRequest()
DTetherController.cpp262 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; in setDnsForwarders()
DSockDiagTest.cpp215 addrinfo hints = { .ai_flags = AI_NUMERICHOST }, *src, *dst; in makeDiagMessage()
/system/netd/tests/benchmarks/
Ddns_benchmark.cpp124 addrinfo* result = nullptr; in getaddrinfo_until_done()
/system/core/adb/
Dsysdeps_win32.cpp844 struct addrinfo hints; in network_connect()
853 struct addrinfo* addrinfo_ptr = nullptr; in network_connect()
872 std::unique_ptr<struct addrinfo, decltype(&freeaddrinfo)> addrinfo(addrinfo_ptr, freeaddrinfo); in network_connect() local
878 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()
891 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()
/system/netd/tests/dns_responder/
Ddns_responder.cpp571 addrinfo ai_hints{ in startServer()
576 addrinfo* ai_res; in startServer()
585 for (const addrinfo* ai = ai_res ; ai ; ai = ai->ai_next) { in startServer()
/system/core/libnetutils/
Difc_utils.c100 struct addrinfo hints, *ai; in string_to_ip()