Lines Matching refs:in6
483 * Determine the appropriate scope zone ID for in6 and ifp. If ret_id is
485 * in the in6_addr structure, in6 will be modified.
490 in6_setscope(struct in6_addr *in6, struct ifnet *ifp, u_int32_t *ret_id)
507 if (IN6_IS_ADDR_LOOPBACK(in6)) {
517 scope = in6_addrscope(in6);
553 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6))
554 in6->s6_addr16[1] = htons(zoneid & 0xffff); /* XXX */
564 in6_clearscope(struct in6_addr *in6)
568 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) {
569 if (in6->s6_addr16[1] != 0)
571 in6->s6_addr16[1] = 0;