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