Lines Matching refs:sin6_addr
170 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) ||
171 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr)) {
173 ntohs(*(u_short *)&sin6->sin6_addr.s6_addr[2]);
174 *(u_short *)&sin6->sin6_addr.s6_addr[2] = 0;
325 host6->sin6_addr = addr->ncpaddr_ip6addr; in ncpaddr_getsa()
351 if (IN6_IS_ADDR_V4MAPPED(&host6->sin6_addr)) { in ncpaddr_setsa()
354 *(const u_int32_t *)(host6->sin6_addr.s6_addr + 12); in ncpaddr_setsa()
357 addr->ncpaddr_ip6addr = host6->sin6_addr; in ncpaddr_setsa()
385 sin6.sin6_addr = addr->ncpaddr_ip6addr; in ncpaddr_ntowa()
724 range->ncprange_ip6addr = host6->sin6_addr; in ncprange_setsa()
725 if (IN6_IS_ADDR_UNSPECIFIED(&host6->sin6_addr)) in ncprange_setsa()
728 range->ncprange_ip6width = mask6 ? mask62bits(&mask6->sin6_addr) : 128; in ncprange_setsa()
768 host6->sin6_addr = range->ncprange_ip6addr; in ncprange_getsa()
772 mask6->sin6_addr = bits2mask6(range->ncprange_ip6width); in ncprange_getsa()