Home | History | Annotate | Download | only in BsdSocketLib

Lines Matching refs:ai_next

325 		next = ai->ai_next;

383 pai->ai_next = NULL;
390 hints->ai_addr || hints->ai_next)
477 error = explore_null(pai, servname, &cur->ai_next,
481 &cur->ai_next, &svd);
486 while (cur->ai_next)
487 cur = cur->ai_next;
495 if (sentinel.ai_next)
529 error = explore_fqdn(pai, hostname, servname, &cur->ai_next,
532 while (cur && cur->ai_next)
533 cur = cur->ai_next;
537 if (sentinel.ai_next)
543 if (sentinel.ai_next) {
546 *res = sentinel.ai_next;
553 if (sentinel.ai_next)
554 freeaddrinfo(sentinel.ai_next);
603 for (cur = result; cur; cur = cur->ai_next) {
640 sentinel.ai_next = NULL;
665 GET_AI(cur->ai_next, afd, afd->a_addrany);
667 * GET_CANONNAME(cur->ai_next, "anyaddr");
669 GET_PORT(cur->ai_next, servname, svd);
671 GET_AI(cur->ai_next, afd, afd->a_loopback);
673 * GET_CANONNAME(cur->ai_next, "localhost");
675 GET_PORT(cur->ai_next, servname, svd);
677 cur = cur->ai_next;
679 *res = sentinel.ai_next;
683 if (sentinel.ai_next)
684 freeaddrinfo(sentinel.ai_next);
708 sentinel.ai_next = NULL;
727 GET_AI(cur->ai_next, afd, pton);
728 GET_PORT(cur->ai_next, servname, svd);
735 GET_CANONNAME(cur->ai_next, canonname);
737 while (cur && cur->ai_next)
738 cur = cur->ai_next;
748 GET_AI(cur->ai_next, afd, pton);
749 GET_PORT(cur->ai_next, servname, svd);
756 GET_CANONNAME(cur->ai_next, canonname);
758 while (cur->ai_next)
759 cur = cur->ai_next;
766 *res = sentinel.ai_next;
771 if (sentinel.ai_next)
772 freeaddrinfo(sentinel.ai_next);
831 for (cur = *res; cur; cur = cur->ai_next) {
1240 cur->ai_next = get_ai(&ai, afd, (const char *)cp);
1241 if (cur->ai_next == NULL)
1243 while (cur && cur->ai_next)
1244 cur = cur->ai_next;
1255 (void)get_canonname(pai, sentinel.ai_next, qname);
1257 (void)get_canonname(pai, sentinel.ai_next, canonname);
1259 return sentinel.ai_next;
1266 #define SORTEDADDR(p) (((struct sockaddr_in *)(void *)(p->ai_next
1275 head.ai_next = NULL;
1280 while (p->ai_next) {
1281 if ((p->ai_next->ai_family != AF_INET)
1283 t->ai_next = p->ai_next;
1284 t = t->ai_next;
1285 p->ai_next = p->ai_next->ai_next;
1287 p = p->ai_next;
1293 t->ai_next = s->ai_next;
1294 s->ai_next = head.ai_next;
1379 cur->ai_next = ai;
1380 while (cur && cur->ai_next)
1381 cur = cur->ai_next;
1386 cur->ai_next = ai;
1390 if (sentinel.ai_next == NULL) {
1407 *((struct addrinfo **)rv) = sentinel.ai_next;
1481 for (res = res0; res; res = res->ai_next) {
1516 cur->ai_next = p;
1517 while (cur && cur->ai_next)
1518 cur = cur->ai_next;
1522 *((struct addrinfo **)rv) = sentinel.ai_next;
1523 if (sentinel.ai_next == NULL)
1585 for (res = res0; res; res = res->ai_next) {
1595 cur->ai_next = res0;
1596 while (cur->ai_next)
1597 cur = cur->ai_next;
1606 return sentinel.ai_next;
1641 cur->ai_next = ai;
1642 while (cur && cur->ai_next)
1643 cur = cur->ai_next;
1655 cur->ai_next = ai;
1659 if (sentinel.ai_next == NULL) {
1663 *((struct addrinfo **)rv) = sentinel.ai_next;