Lines Matching refs:hints
119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
136 if (hints->ai_socktype)
137 ai->ai_socktype = hints->ai_socktype;
141 if (hints->ai_protocol)
142 ai->ai_protocol = hints->ai_protocol;
149 const struct addrinfo *hints, struct addrinfo **res)
171 if (hints && hints->ai_flags & AI_PASSIVE) {
175 *res = malloc_ai(port, addr, hints);
182 *res = malloc_ai(port, htonl(0x7f000001), hints);
189 *res = malloc_ai(port, in.s_addr, hints);
196 if (hints && hints->ai_flags & AI_NUMERICHOST)
207 cur = malloc_ai(port, in->s_addr, hints);