Lines Matching refs:hints
119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
138 if (hints->ai_socktype)
139 ai->ai_socktype = hints->ai_socktype;
143 if (hints->ai_protocol)
144 ai->ai_protocol = hints->ai_protocol;
151 const struct addrinfo *hints, struct addrinfo **res)
173 if (hints && hints->ai_flags & AI_PASSIVE) {
177 *res = malloc_ai(port, addr, hints);
184 *res = malloc_ai(port, htonl(0x7f000001), hints);
191 *res = malloc_ai(port, in.s_addr, hints);
198 if (hints && hints->ai_flags & AI_NUMERICHOST)
209 cur = malloc_ai(port, in->s_addr, hints);