Lines Matching refs:ai_family
289 if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET || in validateHints()
290 hints->ai_family == PF_INET6)) { in validateHints()
309 if (hints->ai_family != ex.e_af) continue; in validateHints()
348 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext()
350 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext()
351 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext()
362 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext()
367 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext()
371 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext()
434 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo()
444 LOG(DEBUG) << __func__ << ": explore_fqdn(): ai_family=" << tmp.ai_family in resolv_getaddrinfo()
520 s = socket(pai->ai_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in explore_null()
531 afd = find_afd(pai->ai_family); in explore_null()
576 afd = find_afd(pai->ai_family); in explore_numeric()
580 if (pai->ai_family == afd->a_af || pai->ai_family == PF_UNSPEC /*?*/) { in explore_numeric()
631 afd = find_afd(pai->ai_family); in explore_numeric_scope()
654 if (cur->ai_family != AF_INET6) continue; in explore_numeric_scope()
698 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
721 switch (ai->ai_family) { in get_port()
766 switch (ai->ai_family) { in get_port()
997 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer()
998 afd = find_afd(ai.ai_family); in getanswer()
1399 switch (pai->ai_family) { in dns_getaddrinfo()