Lines Matching refs:hints
328 getaddrinfo(nodename, servname, hints, res) in getaddrinfo() argument
331 const struct addrinfo *hints;
360 if (hints != NULL) {
361 if (hints->ai_family != PF_INET && hints->ai_family != PF_UNSPEC) {
365 if (hints->ai_socktype != SOCK_DGRAM
366 && hints->ai_socktype != SOCK_STREAM
367 && hints->ai_socktype != 0) {
372 hints = &default_hints;
379 if (hints->ai_flags & AI_NUMERICSERV) {
384 if (hints->ai_socktype == SOCK_DGRAM)
386 else if (hints->ai_socktype == SOCK_STREAM)
388 else if (hints->ai_socktype == 0)
412 if (hints->ai_flags & AI_CANONNAME
413 && !(hints->ai_flags & AI_NUMERICHOST)) {
422 if (hints->ai_flags & AI_NUMERICHOST) {
444 if (hints->ai_flags & AI_CANONNAME)
448 if (hints->ai_flags & AI_PASSIVE)
467 new_res->ai_socktype = hints->ai_socktype;
468 new_res->ai_protocol = hints->ai_protocol;