Lines Matching refs:sin6_addr
188 all1_sa.sin6_addr = in6mask128;
205 ip6_sprintf(&((struct in6_ifaddr *)ifa)->ia_addr.sin6_addr),
290 if (IN6_ARE_ADDR_EQUAL(IFA_IN6(ifa), &ia->ia_addr.sin6_addr)) {
340 if (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) {
563 if (IN6_IS_ADDR_LINKLOCAL(&ia->ia_addr.sin6_addr))
608 if (IN6_IS_ADDR_LINKLOCAL(&sa6->sin6_addr)) {
609 if (sa6->sin6_addr.s6_addr16[1] == 0) {
611 sa6->sin6_addr.s6_addr16[1] =
613 } else if (sa6->sin6_addr.s6_addr16[1] !=
624 ia = in6ifa_ifpwithaddr(ifp, &ifra->ifra_addr.sin6_addr);
830 pr0.ndpr_plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr,
835 pr0.ndpr_mask = ifra->ifra_prefixmask.sin6_addr;
838 pr0.ndpr_prefix.sin6_addr.s6_addr32[i] &=
839 ifra->ifra_prefixmask.sin6_addr.s6_addr32[i];
869 if ((ia = in6ifa_ifpwithaddr(ifp, &ifra->ifra_addr.sin6_addr))
930 pr0.ndpr_plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr,
935 pr0.ndpr_mask = ia->ia_prefixmask.sin6_addr;
937 pr0.ndpr_prefix.sin6_addr.s6_addr32[i] &=
938 ia->ia_prefixmask.sin6_addr.s6_addr32[i];
1028 plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr,
1039 plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL);
1053 &ifra->ifra_dstaddr.sin6_addr,
1057 scopeid = in6_addr2scopeid(ifp, &dst6.sin6_addr);
1063 if ((error = in6_embedscope(&dst6.sin6_addr, &dst6, NULL, NULL))
1106 ip6_sprintf(&ifra->ifra_addr.sin6_addr));
1172 in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL) != plen) {
1175 ip6_sprintf(&ia->ia_addr.sin6_addr));
1188 !IN6_ARE_ADDR_EQUAL(&dst6.sin6_addr,
1189 &ia->ia_dstaddr.sin6_addr)) {
1197 ip6_sprintf(&ia->ia_addr.sin6_addr));
1220 iilen = (sizeof(ia->ia_prefixmask.sin6_addr) << 3) - plen;
1243 ifra->ifra_addr.sin6_addr.s6_addr32[3];
1260 mltmask.sin6_addr = in6mask32;
1268 mltaddr.sin6_addr = in6addr_linklocal_allnodes;
1269 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
1272 IN6_LOOKUP_MULTI(mltaddr.sin6_addr, ifp, in6m);
1281 (void)in6_addmulti(&mltaddr.sin6_addr, ifp, &error, 0);
1286 ip6_sprintf(&mltaddr.sin6_addr),
1295 if (in6_nigroup(ifp, hostname, hostnamelen, &mltaddr.sin6_addr)
1298 IN6_LOOKUP_MULTI(mltaddr.sin6_addr, ifp, in6m);
1301 (void)in6_addmulti(&mltaddr.sin6_addr,
1307 ip6_sprintf(&mltaddr.sin6_addr),
1326 mltaddr.sin6_addr = in6addr_nodelocal_allnodes;
1329 IN6_LOOKUP_MULTI(mltaddr.sin6_addr, ifp, in6m);
1338 (void)in6_addmulti(&mltaddr.sin6_addr, ifp,
1344 ip6_sprintf(&mltaddr.sin6_addr),
1419 ip6_sprintf(&ia->ia_addr.sin6_addr), if_name(ifp),
1442 ia->ia_addr.sin6_addr.s6_addr32[3];
1485 plen = in6_mask2len(&oia->ia_prefixmask.sin6_addr, NULL);
1486 iilen = (sizeof(oia->ia_prefixmask.sin6_addr) << 3) - plen;
1644 if (sin6->sin6_addr.s6_addr32[2] != 0
1645 || sin6->sin6_addr.s6_addr32[3] != 0) {
1660 ifra.ifra_addr.sin6_addr.s6_addr32[2] =
1662 ifra.ifra_addr.sin6_addr.s6_addr32[3] =
1670 ifra.ifra_dstaddr.sin6_addr.s6_addr32[2] =
1672 ifra.ifra_dstaddr.sin6_addr.s6_addr32[3] =
1678 in6_len2mask(&ifra.ifra_prefixmask.sin6_addr, prefixlen);
1697 bcopy(&sin6->sin6_addr, &match, sizeof(match));
1704 if (bcmp(&match, &sin6->sin6_addr, sizeof(match)))
1716 bcopy(&sin6->sin6_addr, &match, sizeof(match));
1761 if (IN6_IS_ADDR_LINKLOCAL(&s6->sin6_addr)) {
1762 s6->sin6_addr.s6_addr16[1] = 0;
1764 in6_addr2scopeid(ifp, &s6->sin6_addr);
1772 if (IN6_IS_ADDR_LINKLOCAL(&s6->sin6_addr)) {
1773 s6->sin6_addr.s6_addr16[1] = 0;
1776 &s6->sin6_addr);
1783 in6_mask2len(&ia->ia_prefixmask.sin6_addr,
1869 plen = in6_mask2len(&ia->ia_prefixmask.sin6_addr, NULL); /* XXX */
1918 sin6.sin6_addr = *maddr6;
2107 bcopy(in6, &sin6.sin6_addr, sizeof (*in6));
2131 if (IN6_ARE_MASKED_ADDR_EQUAL(in6, &ia->ia_addr.sin6_addr,
2132 &ia->ia_prefixmask.sin6_addr)) {
2149 if (IN6_ARE_ADDR_EQUAL(&ia->ia_addr.sin6_addr,
2150 &sa6->sin6_addr) &&
2500 best_scope = in6_addrscope(&ifa_best->ia_addr.sin6_addr);
2572 blen = in6_matchlen(&besta->ia_addr.sin6_addr, dst);
2719 sin->sin_addr.s_addr = sin6->sin6_addr.s6_addr32[3];
2730 sin6->sin6_addr.s6_addr32[0] = 0;
2731 sin6->sin6_addr.s6_addr32[1] = 0;
2732 sin6->sin6_addr.s6_addr32[2] = IPV6_ADDR_INT32_SMP;
2733 sin6->sin6_addr.s6_addr32[3] = sin->sin_addr.s_addr;