/system/core/libcutils/ |
H A D | socket_network_client_windows.c | 39 struct addrinfo hints; local 40 memset(&hints, 0, sizeof(hints)); 41 hints.ai_socktype = type; 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) {
|
H A D | socket_network_client_unix.c | 48 struct addrinfo hints; local 49 memset(&hints, 0, sizeof(hints)); 50 hints.ai_family = AF_UNSPEC; 51 hints.ai_socktype = type; 57 *getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
|
/system/extras/multinetwork/ |
H A D | dnschk.cpp | 38 const struct addrinfo hints = { local 51 args.arg1, nullptr, &hints, &result); 62 rval = getaddrinfo(args.arg1, nullptr, &hints, &result);
|
H A D | httpurl.cpp | 98 struct addrinfo hints = { local 110 &hints, &result); 115 &hints, &result);
|
/system/netd/tests/ |
H A D | netd_test.cpp | 87 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { argument 88 init(node, service, hints); 97 int init(const char* node, const char* service, const addrinfo& hints) { argument 99 error_ = getaddrinfo(node, service, &hints, &ai_); 458 addrinfo hints; local 459 memset(&hints, 0, sizeof(hints)); 460 hints.ai_family = AF_INET; 461 EXPECT_EQ(0, getaddrinfo("hola", nullptr, &hints, &result)); 521 addrinfo hints; local 646 addrinfo hints; local [all...] |
H A D | binder_test.cpp | 455 const struct addrinfo hints = { local 460 if (getaddrinfo(addrString, nullptr, &hints, &addrinfoList) != 0 ||
|
/system/netd/server/ |
H A D | DnsProxyListener.cpp | 125 SocketClient *c, char* host, char* service, struct addrinfo* hints, 131 mHints(hints), 334 struct addrinfo* hints = NULL; local 347 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo)); 348 hints->ai_flags = ai_flags; 349 hints->ai_family = ai_family; 350 hints->ai_socktype = ai_socktype; 351 hints->ai_protocol = ai_protocol; 366 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext, 124 GetAddrInfoHandler( SocketClient *c, char* host, char* service, struct addrinfo* hints, const struct android_net_context& netcontext, const int reportingLevel, const android::sp<android::net::metrics::INetdEventListener>& netdEventListener) argument
|
H A D | DnsProxyListener.h | 55 // Note: All of host, service, and hints may be NULL 59 struct addrinfo* hints,
|
H A D | NetdConstants.cpp | 191 addrinfo hints = { local 194 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res);
|
H A D | TetherController.cpp | 262 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; local 263 int ret = getaddrinfo(servers[i], NULL, &hints, &res);
|
H A D | SockDiagTest.cpp | 215 addrinfo hints = { .ai_flags = AI_NUMERICHOST }, *src, *dst; local 216 EXPECT_EQ(0, getaddrinfo(srcstr, NULL, &hints, &src)); 217 EXPECT_EQ(0, getaddrinfo(dststr, NULL, &hints, &dst));
|
H A D | SockDiag.cpp | 136 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; local 143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 100 struct addrinfo hints, *ai; local 107 memset(&hints, 0, sizeof(hints)); 108 hints.ai_family = AF_UNSPEC; 109 hints.ai_flags = AI_NUMERICHOST; 110 hints.ai_socktype = SOCK_DGRAM; 112 ret = getaddrinfo(string, NULL, &hints, &ai);
|
/system/core/adb/ |
H A D | sysdeps_win32.cpp | 844 struct addrinfo hints; local 845 memset(&hints, 0, sizeof(hints)); 846 hints.ai_family = AF_UNSPEC; 847 hints.ai_socktype = type; 848 hints.ai_protocol = GetSocketProtocolFromSocketType(type); 862 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) {
|