Lines Matching refs:hints
124 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints)
143 if (hints->ai_socktype)
144 ai->ai_socktype = hints->ai_socktype;
148 if (hints->ai_protocol)
149 ai->ai_protocol = hints->ai_protocol;
156 const struct addrinfo *hints, struct addrinfo **res)
166 if (hints && hints->ai_family != AF_UNSPEC &&
167 hints->ai_family != AF_INET)
181 if (hints && hints->ai_flags & AI_PASSIVE) {
185 *res = malloc_ai(port, addr, hints);
192 *res = malloc_ai(port, htonl(0x7f000001), hints);
199 *res = malloc_ai(port, in.s_addr, hints);
206 if (hints && hints->ai_flags & AI_NUMERICHOST)
217 cur = malloc_ai(port, in->s_addr, hints);