Lines Matching refs:ai_family
290 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints()
291 hints->ai_family == PF_INET6)) { in validateHints()
310 if (hints->ai_family != ex.e_af) continue; in validateHints()
349 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext()
351 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext()
352 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext()
363 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext()
368 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext()
372 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext()
435 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo()
445 LOG(DEBUG) << __func__ << ": explore_fqdn(): ai_family=" << tmp.ai_family in resolv_getaddrinfo()
521 s = socket(pai->ai_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in explore_null()
532 afd = find_afd(pai->ai_family); in explore_null()
577 afd = find_afd(pai->ai_family); in explore_numeric()
581 if (pai->ai_family == afd->a_af || pai->ai_family == PF_UNSPEC /*?*/) { in explore_numeric()
632 afd = find_afd(pai->ai_family); in explore_numeric_scope()
655 if (cur->ai_family != AF_INET6) continue; in explore_numeric_scope()
699 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
722 switch (ai->ai_family) { in get_port()
767 switch (ai->ai_family) { in get_port()
998 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer()
999 afd = find_afd(ai.ai_family); in getanswer()
1400 switch (pai->ai_family) { in dns_getaddrinfo()