/system/core/libcutils/ |
D | socket_network_client_windows.c | 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.c | 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/netd/tests/ |
D | netd_test.cpp | 131 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { in AddrInfo() argument 132 init(node, service, hints); in AddrInfo() 141 int init(const char* node, const char* service, const addrinfo& hints) { in init() argument 143 error_ = getaddrinfo(node, service, &hints, &ai_); in init() 597 addrinfo hints; in TEST_F() local 598 memset(&hints, 0, sizeof(hints)); in TEST_F() 599 hints.ai_family = AF_INET; in TEST_F() 600 EXPECT_EQ(0, getaddrinfo("hola", nullptr, &hints, &result)); in TEST_F() 660 addrinfo hints; in TEST_F() local 661 memset(&hints, 0, sizeof(hints)); in TEST_F() [all …]
|
/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/server/ |
D | DnsProxyListener.cpp | 62 SocketClient *c, char* host, char* service, struct addrinfo* hints, in GetAddrInfoHandler() argument 68 mHints(hints), in GetAddrInfoHandler() 261 struct addrinfo* hints = NULL; in runCommand() local 274 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo)); in runCommand() 275 hints->ai_flags = ai_flags; in runCommand() 276 hints->ai_family = ai_family; in runCommand() 277 hints->ai_socktype = ai_socktype; in runCommand() 278 hints->ai_protocol = ai_protocol; in runCommand() 292 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext, in runCommand()
|
D | NetdConstants.cpp | 211 addrinfo hints = { in parsePrefix() local 214 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res); in parsePrefix()
|
D | TetherController.cpp | 240 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; in setDnsForwarders() local 241 int ret = getaddrinfo(servers[i], NULL, &hints, &res); in setDnsForwarders()
|
D | DnsProxyListener.h | 60 struct addrinfo* hints,
|
D | SockDiag.cpp | 134 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; in sendDumpRequest() local 141 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { in sendDumpRequest()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 104 struct addrinfo hints, *ai; in string_to_ip() local 111 memset(&hints, 0, sizeof(hints)); in string_to_ip() 112 hints.ai_family = AF_UNSPEC; in string_to_ip() 113 hints.ai_flags = AI_NUMERICHOST; in string_to_ip() 114 hints.ai_socktype = SOCK_DGRAM; in string_to_ip() 116 ret = getaddrinfo(string, NULL, &hints, &ai); in string_to_ip()
|
/system/weaved/buffet/ |
D | socket_stream.cc | 68 addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM}; in ConnectSocket() local 70 if (getaddrinfo(host.c_str(), service.c_str(), &hints, &result)) { in ConnectSocket()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 983 struct addrinfo hints; in network_connect() local 984 memset(&hints, 0, sizeof(hints)); in network_connect() 985 hints.ai_family = AF_UNSPEC; in network_connect() 986 hints.ai_socktype = type; in network_connect() 987 hints.ai_protocol = GetSocketProtocolFromSocketType(type); in network_connect() 1001 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { in network_connect()
|