Lines Matching refs:ai_next

336 		next = ai->ai_next;  in freeaddrinfo()
533 nextres = &ai->ai_next; in android_getaddrinfo_proxy()
613 pai->ai_next = NULL; in android_getaddrinfofornetcontext()
620 hints->ai_addr || hints->ai_next) in android_getaddrinfofornetcontext()
707 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
710 &cur->ai_next); in android_getaddrinfofornetcontext()
715 while (cur->ai_next) in android_getaddrinfofornetcontext()
716 cur = cur->ai_next; in android_getaddrinfofornetcontext()
724 if (sentinel.ai_next) in android_getaddrinfofornetcontext()
767 pai, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
769 while (cur && cur->ai_next) in android_getaddrinfofornetcontext()
770 cur = cur->ai_next; in android_getaddrinfofornetcontext()
774 if (sentinel.ai_next) in android_getaddrinfofornetcontext()
780 if (sentinel.ai_next) { in android_getaddrinfofornetcontext()
782 *res = sentinel.ai_next; in android_getaddrinfofornetcontext()
789 if (sentinel.ai_next) in android_getaddrinfofornetcontext()
790 freeaddrinfo(sentinel.ai_next); in android_getaddrinfofornetcontext()
839 for (cur = result; cur; cur = cur->ai_next) { in explore_fqdn()
876 sentinel.ai_next = NULL; in explore_null()
901 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null()
905 GET_PORT(cur->ai_next, servname); in explore_null()
907 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null()
911 GET_PORT(cur->ai_next, servname); in explore_null()
913 cur = cur->ai_next; in explore_null()
915 *res = sentinel.ai_next; in explore_null()
919 if (sentinel.ai_next) in explore_null()
920 freeaddrinfo(sentinel.ai_next); in explore_null()
943 sentinel.ai_next = NULL; in explore_numeric()
962 GET_AI(cur->ai_next, afd, pton); in explore_numeric()
963 GET_PORT(cur->ai_next, servname); in explore_numeric()
970 GET_CANONNAME(cur->ai_next, canonname); in explore_numeric()
972 while (cur && cur->ai_next) in explore_numeric()
973 cur = cur->ai_next; in explore_numeric()
983 GET_AI(cur->ai_next, afd, pton); in explore_numeric()
984 GET_PORT(cur->ai_next, servname); in explore_numeric()
991 GET_CANONNAME(cur->ai_next, canonname); in explore_numeric()
993 while (cur->ai_next) in explore_numeric()
994 cur = cur->ai_next; in explore_numeric()
1001 *res = sentinel.ai_next; in explore_numeric()
1006 if (sentinel.ai_next) in explore_numeric()
1007 freeaddrinfo(sentinel.ai_next); in explore_numeric()
1064 for (cur = *res; cur; cur = cur->ai_next) { in explore_numeric_scope()
1477 cur->ai_next = get_ai(&ai, afd, (const char *)cp); in getanswer()
1478 if (cur->ai_next == NULL) in getanswer()
1480 while (cur && cur->ai_next) in getanswer()
1481 cur = cur->ai_next; in getanswer()
1492 (void)get_canonname(pai, sentinel.ai_next, qname); in getanswer()
1494 (void)get_canonname(pai, sentinel.ai_next, canonname); in getanswer()
1496 return sentinel.ai_next; in getanswer()
1851 cur = list_sentinel->ai_next; in _rfc6724_sort()
1854 cur = cur->ai_next; in _rfc6724_sort()
1866 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1882 list_sentinel->ai_next = elems[0].ai; in _rfc6724_sort()
1884 elems[i].ai->ai_next = elems[i + 1].ai; in _rfc6724_sort()
1886 elems[nelem - 1].ai->ai_next = NULL; in _rfc6724_sort()
1998 cur->ai_next = ai; in _dns_getaddrinfo()
1999 while (cur && cur->ai_next) in _dns_getaddrinfo()
2000 cur = cur->ai_next; in _dns_getaddrinfo()
2005 cur->ai_next = ai; in _dns_getaddrinfo()
2009 if (sentinel.ai_next == NULL) { in _dns_getaddrinfo()
2025 *((struct addrinfo **)rv) = sentinel.ai_next; in _dns_getaddrinfo()
2101 for (res = res0; res; res = res->ai_next) { in _gethtent()
2134 cur->ai_next = p; in _files_getaddrinfo()
2135 while (cur && cur->ai_next) in _files_getaddrinfo()
2136 cur = cur->ai_next; in _files_getaddrinfo()
2140 *((struct addrinfo **)rv) = sentinel.ai_next; in _files_getaddrinfo()
2141 if (sentinel.ai_next == NULL) in _files_getaddrinfo()