Lines Matching refs:AF_INET

251       if (family == AF_INET && req->ai_family == AF_INET6)  in convert_hostent_to_gaih_addrtuple()
521 socklen_t size = (air->family[i] == AF_INET in get_nscd_addresses()
524 if (!((air->family[i] == AF_INET in get_nscd_addresses()
535 if (air->family[i] == AF_INET && req->ai_family == AF_INET6 in get_nscd_addresses()
684 if ((*pat)->family == AF_INET in get_nss_addresses()
744 if (req->ai_family == AF_INET in get_nss_addresses()
752 if ((result = gethosts (fct, AF_INET, name, req, tmpbuf, in get_nss_addresses()
759 if (req->ai_family == AF_INET) in get_nss_addresses()
869 if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET) in text_to_binary_address()
870 at->family = AF_INET; in text_to_binary_address()
910 else if (req->ai_family == AF_INET in text_to_binary_address()
914 at->family = AF_INET; in text_to_binary_address()
961 if (req->ai_family != AF_INET || (req->ai_flags & AI_CANONNAME) != 0) in try_simple_gethostbyname()
970 rc = __gethostbyname2_r (name, AF_INET, &th, tmpbuf->data, in try_simple_gethostbyname()
985 if (!convert_hostent_to_gaih_addrtuple (req, AF_INET, h, res)) in try_simple_gethostbyname()
1025 if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET) in get_local_addresses()
1027 atr->family = AF_INET; in get_local_addresses()
2052 else if (inet_pton (AF_INET, val1, &prefix.s6_addr32[3]) in gaiconf_init()
2263 if (errno == EAFNOSUPPORT && af == AF_INET6 && family == AF_INET) in try_connect()
2268 *afp = af = AF_INET; in try_connect()
2269 *fdp = fd = __socket (AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, in try_connect()
2311 if (hints->ai_family != AF_UNSPEC && hints->ai_family != AF_INET in getaddrinfo()
2466 if (fd == -1 || (af == AF_INET && q->ai_family == AF_INET6)) in getaddrinfo()
2492 if (q->ai_family == AF_INET && af == AF_INET) in getaddrinfo()
2526 if (q->ai_family == AF_INET && af == AF_INET6) in getaddrinfo()
2535 sin->sin_family = AF_INET; in getaddrinfo()