Lines Matching refs:hints
121 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
140 if (hints->ai_socktype)
141 ai->ai_socktype = hints->ai_socktype;
145 if (hints->ai_protocol)
146 ai->ai_protocol = hints->ai_protocol;
153 const struct addrinfo *hints, struct addrinfo **res)
175 if (hints && hints->ai_flags & AI_PASSIVE) {
179 *res = malloc_ai(port, addr, hints);
186 *res = malloc_ai(port, htonl(0x7f000001), hints);
193 *res = malloc_ai(port, in.s_addr, hints);
200 if (hints && hints->ai_flags & AI_NUMERICHOST)
211 cur = malloc_ai(port, in->s_addr, hints);