Lines Matching refs:in6
224 struct in6_addr *__single in6 = NULL; in in6_selectsrc_core_ifa() local
227 if ((in6 = in6_selectsrc_core(addr, in in6_selectsrc_core_ifa()
2203 in6_embedscope(struct in6_addr *in6, const struct sockaddr_in6 *sin6, in in6_embedscope() argument
2210 *in6 = sin6->sin6_addr; in in6_embedscope()
2223 scopeid = scope6_addr2default(in6); in in6_embedscope()
2227 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) { in in6_embedscope()
2231 if (in6p != NULL && IN6_IS_ADDR_MULTICAST(in6) && in in6_embedscope()
2258 in6->s6_addr16[1] = htons((uint16_t)pi->ipi6_ifindex); in in6_embedscope()
2263 } else if (in6p != NULL && IN6_IS_ADDR_MULTICAST(in6) && in in6_embedscope()
2267 in6->s6_addr16[1] = htons(ifp->if_index); in in6_embedscope()
2289 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_embedscope()
2317 const struct in6_addr *in6, in in6_recoverscope() argument
2322 sin6->sin6_addr = *in6; in in6_recoverscope()
2325 if (ifp != NULL && IN6_IS_SCOPE_EMBED(in6)) { in in6_recoverscope()
2336 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) { in in6_recoverscope()