Lines Matching refs:ipv6
140 * system not being configured with IPv4/IPv6/domain socket enabled.
533 char ipv6[64], /* IPv6 address */
535 int ipv6len; /* Length of IPv6 address */
551 * Remove brackets from numeric IPv6 address...
560 strlcpy(ipv6, hostname + 4, sizeof(ipv6));
561 if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']')
563 ipv6[ipv6len] = '\0';
564 hostname = ipv6;
570 if ((ipv6zone = strrchr(ipv6, '+')) != NULL)
577 * Copy the regular non-link-local IPv6 address...
580 strlcpy(ipv6, hostname + 1, sizeof(ipv6));
581 if ((ipv6len = (int)strlen(ipv6) - 1) >= 0 && ipv6[ipv6len] == ']')
583 ipv6[ipv6len] = '\0';
584 hostname = ipv6;
611 memcpy(&(temp->addr.ipv6), current->ai_addr,
612 sizeof(temp->addr.ipv6));
734 temp->addr.ipv6.sin6_family = AF_INET6;
735 memcpy(&(temp->addr.ipv6.sin6_addr), host->h_addr_list[i],
736 sizeof(temp->addr.ipv6));
737 temp->addr.ipv6.sin6_port = htons(portnum);
815 * then we were unable to resolve the name, so use the IPv6 and/or
834 temp->addr.ipv6.sin6_family = AF_INET6;
835 temp->addr.ipv6.sin6_port = htons(portnum);
837 temp->addr.ipv6.sin6_addr.u.Byte[15] = 1;
839 temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1);
895 temp->addr.ipv6.sin6_family = AF_INET6;
896 temp->addr.ipv6.sin6_port = htons(portnum);