Lines Matching refs:in6
519 in6_embedscope(struct in6_addr *in6, in in6_embedscope() argument
533 *in6 = sin6->sin6_addr; in in6_embedscope()
545 scopeid = scope6_addr2default(in6); in in6_embedscope()
548 if (IN6_IS_SCOPE_LINKLOCAL(in6)) { in in6_embedscope()
559 in6->s6_addr16[1] = htons(pi->ipi6_ifindex); in in6_embedscope()
560 } else if (in6p && IN6_IS_ADDR_MULTICAST(in6) && in in6_embedscope()
564 in6->s6_addr16[1] = htons(ifp->if_index); in in6_embedscope()
571 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_embedscope()
593 in6_recoverscope(struct sockaddr_in6 *sin6, const struct in6_addr *in6, in in6_recoverscope() argument
598 sin6->sin6_addr = *in6; in in6_recoverscope()
606 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) { in in6_recoverscope()