Lines Matching refs:hints
44 const struct addrinfo *hints, in get_port_protocol_socktype() argument
54 if (hints != NULL && hints->ai_protocol != 0) { in get_port_protocol_socktype()
55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype()
64 if (hints != NULL) in get_port_protocol_socktype()
65 *socktype = hints->ai_socktype; in get_port_protocol_socktype()
180 get_null (const struct addrinfo *hints, in get_null() argument
193 if (hints != NULL) in get_null()
194 family = hints->ai_family; in get_null()
196 if (hints && hints->ai_flags & AI_PASSIVE) { in get_null()
274 const struct addrinfo *hints, in get_number() argument
283 if (hints != NULL) { in get_number()
284 family = hints->ai_family; in get_number()
314 const struct addrinfo *hints, in get_nodes() argument
325 if (hints != NULL) { in get_nodes()
326 family = hints->ai_family; in get_nodes()
327 flags = hints->ai_flags; in get_nodes()
373 const struct addrinfo *hints, in getaddrinfo() argument
386 if (hints != NULL in getaddrinfo()
387 && hints->ai_family != PF_UNSPEC in getaddrinfo()
388 && hints->ai_family != PF_INET in getaddrinfo()
390 && hints->ai_family != PF_INET6 in getaddrinfo()
396 ret = get_port_protocol_socktype (servname, hints, in getaddrinfo()
402 ret = get_number (nodename, hints, port, protocol, socktype, res); in getaddrinfo()
404 if(hints && hints->ai_flags & AI_NUMERICHOST) in getaddrinfo()
407 ret = get_nodes (nodename, hints, port, protocol, socktype, in getaddrinfo()
411 ret = get_null (hints, port, protocol, socktype, res); in getaddrinfo()