Lines Matching refs:ai_next

293 		next = ai->ai_next;
351 pai->ai_next = NULL;
358 hints->ai_addr || hints->ai_next)
479 error = explore_null(pai, servname, &cur->ai_next);
482 &cur->ai_next);
487 while (cur && cur->ai_next)
488 cur = cur->ai_next;
496 if (sentinel.ai_next)
572 if ((error = explore_copy(pai, afai, &cur->ai_next)) != 0) {
577 while (cur && cur->ai_next)
578 cur = cur->ai_next;
583 if (sentinel.ai_next) {
585 *res = sentinel.ai_next;
598 if (sentinel.ai_next)
599 freeaddrinfo(sentinel.ai_next);
675 for (cur = result; cur; cur = cur->ai_next) {
701 sentinel.ai_next = NULL;
704 for (src = src0; src != NULL; src = src->ai_next) {
708 cur->ai_next = copy_ai(src);
709 if (!cur->ai_next) {
714 cur->ai_next->ai_socktype = pai->ai_socktype;
715 cur->ai_next->ai_protocol = pai->ai_protocol;
716 cur = cur->ai_next;
719 *res = sentinel.ai_next;
723 freeaddrinfo(sentinel.ai_next);
744 sentinel.ai_next = NULL;
752 GET_AI(cur->ai_next, afd, afd->a_addrany);
756 GET_PORT(cur->ai_next, servname);
758 GET_AI(cur->ai_next, afd, afd->a_loopback);
762 GET_PORT(cur->ai_next, servname);
764 cur = cur->ai_next;
766 *res = sentinel.ai_next;
770 if (sentinel.ai_next)
771 freeaddrinfo(sentinel.ai_next);
792 sentinel.ai_next = NULL;
805 GET_AI(cur->ai_next, afd, pton);
806 GET_PORT(cur->ai_next, servname);
807 while (cur->ai_next)
808 cur = cur->ai_next;
818 GET_AI(cur->ai_next, afd, pton);
819 GET_PORT(cur->ai_next, servname);
820 while (cur->ai_next)
821 cur = cur->ai_next;
828 *res = sentinel.ai_next;
833 if (sentinel.ai_next)
834 freeaddrinfo(sentinel.ai_next);
883 for (cur = *res; cur; cur = cur->ai_next) {
973 ai->ai_next = NULL;
1193 GET_AI(cur->ai_next, afd, ap);
1202 GET_CANONNAME(cur->ai_next, hp->h_name);
1204 while (cur->ai_next) /*%< no need to loop, actually. */
1205 cur = cur->ai_next;
1209 if (cur->ai_next)
1210 freeaddrinfo(cur->ai_next);
1211 cur->ai_next = NULL;
1215 return(sentinel.ai_next);