Home | History | Annotate | Download | only in net

Lines Matching refs:ai_next

327 		next = ai->ai_next;
511 ai->ai_next = NULL;
550 nextres = &ai->ai_next;
611 pai->ai_next = NULL;
618 hints->ai_addr || hints->ai_next)
705 error = explore_null(pai, servname, &cur->ai_next);
708 &cur->ai_next);
713 while (cur->ai_next)
714 cur = cur->ai_next;
722 if (sentinel.ai_next)
765 &cur->ai_next, iface, mark);
767 while (cur && cur->ai_next)
768 cur = cur->ai_next;
772 if (sentinel.ai_next)
778 if (sentinel.ai_next) {
780 *res = sentinel.ai_next;
787 if (sentinel.ai_next)
788 freeaddrinfo(sentinel.ai_next);
836 for (cur = result; cur; cur = cur->ai_next) {
873 sentinel.ai_next = NULL;
898 GET_AI(cur->ai_next, afd, afd->a_addrany);
900 * GET_CANONNAME(cur->ai_next, "anyaddr");
902 GET_PORT(cur->ai_next, servname);
904 GET_AI(cur->ai_next, afd, afd->a_loopback);
906 * GET_CANONNAME(cur->ai_next, "localhost");
908 GET_PORT(cur->ai_next, servname);
910 cur = cur->ai_next;
912 *res = sentinel.ai_next;
916 if (sentinel.ai_next)
917 freeaddrinfo(sentinel.ai_next);
940 sentinel.ai_next = NULL;
959 GET_AI(cur->ai_next, afd, pton);
960 GET_PORT(cur->ai_next, servname);
967 GET_CANONNAME(cur->ai_next, canonname);
969 while (cur && cur->ai_next)
970 cur = cur->ai_next;
980 GET_AI(cur->ai_next, afd, pton);
981 GET_PORT(cur->ai_next, servname);
988 GET_CANONNAME(cur->ai_next, canonname);
990 while (cur->ai_next)
991 cur = cur->ai_next;
998 *res = sentinel.ai_next;
1003 if (sentinel.ai_next)
1004 freeaddrinfo(sentinel.ai_next);
1061 for (cur = *res; cur; cur = cur->ai_next) {
1460 cur->ai_next = get_ai(&ai, afd, (const char *)cp);
1461 if (cur->ai_next == NULL)
1463 while (cur && cur->ai_next)
1464 cur = cur->ai_next;
1475 (void)get_canonname(pai, sentinel.ai_next, qname);
1477 (void)get_canonname(pai, sentinel.ai_next, canonname);
1479 return sentinel.ai_next;
1815 * Sort the linked list starting at sentinel->ai_next in RFC6724 order.
1827 cur = list_sentinel->ai_next;
1830 cur = cur->ai_next;
1842 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) {
1858 list_sentinel->ai_next = elems[0].ai;
1860 elems[i].ai->ai_next = elems[i + 1].ai;
1862 elems[nelem - 1].ai->ai_next = NULL;
1997 cur->ai_next = ai;
1998 while (cur && cur->ai_next)
1999 cur = cur->ai_next;
2004 cur->ai_next = ai;
2008 if (sentinel.ai_next == NULL) {
2024 *((struct addrinfo **)rv) = sentinel.ai_next;
2100 for (res = res0; res; res = res->ai_next) {
2133 cur->ai_next = p;
2134 while (cur && cur->ai_next)
2135 cur = cur->ai_next;
2139 *((struct addrinfo **)rv) = sentinel.ai_next;
2140 if (sentinel.ai_next == NULL)