Lines Matching refs:ai_addr
419 return &((struct sockaddr_in *)(void *)ai->ai_addr)->sin_port; in getport()
422 return &((struct sockaddr_in6 *)(void *)ai->ai_addr)->sin6_port; in getport()
481 pai->ai_addr = NULL; in getaddrinfo()
489 hints->ai_addr || hints->ai_next) in getaddrinfo()
746 aio[i].aio_dstscope = gai_addr2scopetype(ai->ai_addr); in reorder()
747 aio[i].aio_dstpolicy = match_addrselectpolicy(ai->ai_addr, in reorder()
916 memcpy(&ss, ai.ai_addr, ai.ai_addrlen); in set_source()
917 ai.ai_addr = (void *)&ss; in set_source()
931 if (connect(s, ai.ai_addr, ai.ai_addrlen) < 0) in set_source()
940 aio->aio_matchlen = matchlen(&aio->aio_srcsa, aio->aio_ai->ai_addr); in set_source()
947 memcpy(&ifr6.ifr_addr, ai.ai_addr, ai.ai_addrlen); in set_source()
1097 if (dst1->aio_ai->ai_addr->sa_family == in comp_dst()
1098 dst2->aio_ai->ai_addr->sa_family && in comp_dst()
1099 dst1->aio_ai->ai_addr->sa_family != AF_INET) { in comp_dst()
1461 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr; in explore_numeric_scope()
1499 ai->ai_addr = (void *)(ai+1); in allocaddrinfo()
1500 ai->ai_addrlen = ai->ai_addr->sa_len = addrlen; in allocaddrinfo()
1521 save = ai->ai_addr; in get_ai()
1526 ai->ai_addr = save; in get_ai()
1529 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
1530 p = (char *)(void *)(ai->ai_addr); in get_ai()
2018 #define SORTEDADDR(p) (((struct sockaddr_in *)(void *)(p->ai_next->ai_addr))->sin_addr.s_addr)
2900 sockaddr_snprintf(buf, sizeof(buf), "%a", ai->ai_addr);