Searched refs:hints (Results 1 - 4 of 4) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_getaddrinfo.c2 * without a 'hints' argument
18 struct addrinfo hints; local
22 /* first, try without any hints */
31 /* now try with the hints */
32 memset(&hints, 0, sizeof(hints));
33 hints.ai_family = AF_UNSPEC;
34 hints.ai_socktype = SOCK_STREAM;
35 hints.ai_protocol = IPPROTO_TCP;
37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints,
[all...]
/system/netd/
H A DDnsProxyListener.h39 // Note: All of host, service, and hints may be NULL
43 struct addrinfo* hints)
47 mHints(hints) {}
40 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints) argument
H A DDnsProxyListener.cpp138 struct addrinfo* hints = NULL; local
145 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo));
146 hints->ai_flags = ai_flags;
147 hints->ai_family = ai_family;
148 hints->ai_socktype = ai_socktype;
149 hints->ai_protocol = ai_protocol;
160 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints);
/system/core/libnetutils/
H A Difc_utils.c96 struct addrinfo hints, *ai; local
103 memset(&hints, 0, sizeof(hints));
104 hints.ai_family = AF_UNSPEC;
105 hints.ai_flags = AI_NUMERICHOST;
106 hints.ai_socktype = SOCK_DGRAM;
108 ret = getaddrinfo(string, NULL, &hints, &ai);
873 struct addrinfo hints, *addr_ai, *gw_ai; local
875 memset(&hints, 0, sizeof(hints));
[all...]

Completed in 45 milliseconds