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