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