Lines Matching refs:ai_next
373 next = ai->ai_next;
485 pai->ai_next = NULL;
492 hints->ai_addr || hints->ai_next)
585 error = explore_null(pai, servname, &cur->ai_next,
589 &cur->ai_next, &svd);
594 while (cur->ai_next)
595 cur = cur->ai_next;
603 if (sentinel.ai_next) {
646 error = explore_fqdn(pai, hostname, servname, &cur->ai_next,
649 while (cur && cur->ai_next)
650 cur = cur->ai_next;
654 if (sentinel.ai_next)
660 if (sentinel.ai_next) {
677 canonname = sentinel.ai_next->ai_canonname;
678 sentinel.ai_next->ai_canonname = NULL;
680 if (sentinel.ai_next->ai_canonname == NULL) {
681 sentinel.ai_next->ai_canonname
688 *res = sentinel.ai_next;
695 if (sentinel.ai_next)
696 freeaddrinfo(sentinel.ai_next);
710 for (n = 0, ai = sentinel->ai_next; ai != NULL; ai = ai->ai_next, n++)
731 for (i = 0, ai = sentinel->ai_next; i < n; ai = ai->ai_next, i++) {
743 for (i = 0, aip = &sentinel->ai_next; i < n; i++) {
745 aip = &aio[i].aio_ai->ai_next;
904 ai.ai_next = NULL;
1197 for (cur = result; cur; cur = cur->ai_next) {
1237 sentinel.ai_next = NULL;
1262 GET_AI(cur->ai_next, afd, afd->a_addrany);
1264 * GET_CANONNAME(cur->ai_next, "anyaddr");
1266 GET_PORT(cur->ai_next
1268 GET_AI(cur->ai_next, afd, afd->a_loopback);
1270 * GET_CANONNAME(cur->ai_next, "localhost");
1272 GET_PORT(cur->ai_next, servname, svd);
1274 cur = cur->ai_next;
1276 *res = sentinel.ai_next;
1280 if (sentinel.ai_next)
1281 freeaddrinfo(sentinel.ai_next);
1305 sentinel.ai_next = NULL;
1338 GET_AI(cur->ai_next, afd, pton);
1339 GET_PORT(cur->ai_next, servname, svd);
1346 GET_CANONNAME(cur->ai_next, canonname);
1348 while (cur && cur->ai_next)
1349 cur = cur->ai_next;
1358 GET_AI(cur->ai_next, afd, pton);
1359 GET_PORT(cur->ai_next, servname, svd);
1366 GET_CANONNAME(cur->ai_next, canonname);
1368 while (cur->ai_next)
1369 cur = cur->ai_next;
1376 *res = sentinel.ai_next;
1381 if (sentinel.ai_next)
1382 freeaddrinfo(sentinel.ai_next);
1442 for (cur = *res; cur; cur = cur->ai_next) {
1879 cur->ai_next = get_ai(&ai, afd, (const char *)cp);
1880 if (cur->ai_next == NULL)
1882 while (cur && cur->ai_next)
1883 cur = cur->ai_next;
1975 cur->ai_next = aip;
1976 while (cur && cur->ai_next) {
1977 cur = cur->ai_next;
1986 if (!sentinel.ai_next->ai_canonname)
1987 ai_next,
1990 return sentinel.ai_next;
1999 #define SORTEDADDR(p) (((struct sockaddr_in *)(void *)(p->ai_next->ai_addr))->sin_addr.s_addr)
2008 head.ai_next = NULL;
2013 while (p->ai_next) {
2014 if ((p->ai_next->ai_family != AF_INET)
2016 t->ai_next = p->ai_next;
2017 t = t->ai_next;
2018 p->ai_next = p->ai_next->ai_next;
2020 p = p->ai_next;
2026 t->ai_next = s->ai_next;
2027 s->ai_next = head.ai_next;
2076 cur->ai_next = ai;
2077 while (cur && cur->ai_next)
2078 cur = cur->ai_next;
2083 cur->ai_next = ai;
2087 return sentinel.ai_next;
2155 cur->ai_next = ai;
2156 while (cur && cur->ai_next)
2157 cur = cur->ai_next;
2167 return sentinel.ai_next;
2215 sentinel.ai_next = ai;
2222 return sentinel.ai_next;
2351 for (res = res0; res; res = res->ai_next) {
2386 cur->ai_next = p;
2387 while (cur && cur->ai_next)
2388 cur = cur->ai_next;
2392 *((struct addrinfo **)rv) = sentinel.ai_next;
2393 if (sentinel.ai_next == NULL)
2455 for (res = res0; res; res = res->ai_next) {
2465 cur->ai_next = res0;
2466 while (cur->ai_next)
2467 cur = cur->ai_next;
2476 return sentinel.ai_next;
2511 cur->ai_next = ai;
2512 while (cur && cur->ai_next)
2513 cur = cur->ai_next;
2525 cur->ai_next = ai;
2529 if (sentinel.ai_next == NULL) {
2533 *((struct addrinfo **)rv) = sentinel.ai_next;
2871 for (ai = sai; ai; ai = ai->ai_next) {
2882 ai->ai_next);