Lines Matching refs:ai_family

274     if (!(hints->ai_family == PF_UNSPEC || hints->ai_family == PF_INET ||  in validateHints()
275 hints->ai_family == PF_INET6)) { in validateHints()
294 if (hints->ai_family != ex.e_af) continue; in validateHints()
333 if (MATCH_FAMILY(ai.ai_family, PF_INET, 1) || MATCH_FAMILY(ai.ai_family, PF_INET6, 1)) { in android_getaddrinfofornetcontext()
335 if (tmp.ai_family == PF_UNSPEC) { in android_getaddrinfofornetcontext()
336 tmp.ai_family = PF_INET6; in android_getaddrinfofornetcontext()
347 if (!MATCH_FAMILY(ai.ai_family, ex.e_af, WILD_AF(ex))) continue; in android_getaddrinfofornetcontext()
352 if (tmp.ai_family == PF_UNSPEC) tmp.ai_family = ex.e_af; in android_getaddrinfofornetcontext()
356 LOG(DEBUG) << __func__ << ": explore_numeric: ai_family=" << tmp.ai_family in android_getaddrinfofornetcontext()
419 if (ai.ai_family != ex.e_af) continue; in resolv_getaddrinfo()
429 LOG(DEBUG) << __func__ << ": explore_fqdn(): ai_family=" << tmp.ai_family in resolv_getaddrinfo()
505 s = socket(pai->ai_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in explore_null()
516 afd = find_afd(pai->ai_family); in explore_null()
561 afd = find_afd(pai->ai_family); in explore_numeric()
565 if (pai->ai_family == afd->a_af || pai->ai_family == PF_UNSPEC /*?*/) { in explore_numeric()
616 afd = find_afd(pai->ai_family); in explore_numeric_scope()
639 if (cur->ai_family != AF_INET6) continue; in explore_numeric_scope()
681 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
704 switch (ai->ai_family) { in get_port()
748 switch (ai->ai_family) { in get_port()
973 ai.ai_family = (type == T_A) ? AF_INET : AF_INET6; in getanswer()
974 afd = find_afd(ai.ai_family); in getanswer()
1392 switch (pai->ai_family) { in dns_getaddrinfo()