Lines Matching defs:in6
271 in6_setzoneid(struct in6_addr *in6, uint32_t zoneid)
273 if (IN6_IS_SCOPE_EMBEDDABLE(in6))
274 in6->s6_addr16[1] = htons(zoneid & 0xffff); /* XXX */
280 * Determine the appropriate scope zone ID for in6 and ifp. If ret_id is
282 * in the in6_addr structure, in6 will be modified.
285 in6_setscope(struct in6_addr *in6, const struct ifnet *ifp, uint32_t *ret_id)
301 if (IN6_IS_ADDR_LOOPBACK(in6)) {
306 __func__, if_name(ifp), IN6_PRINT(ip6buf, in6));
315 scope = in6_addrscope(in6);
342 return in6_setzoneid(in6, zoneid);
373 in6_clearscope(struct in6_addr *in6)
377 if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) {
378 if (in6->s6_addr16[1] != 0)
380 in6->s6_addr16[1] = 0;