Lines Matching refs:in6
40 return in6_addr_is_null(&u->in6); in in_addr_is_null()
64 return in6_addr_is_link_local(&u->in6); in in_addr_is_link_local()
86 return IN6_IS_ADDR_MULTICAST(&u->in6); in in_addr_is_multicast()
119 … return IN6_IS_ADDR_LOOPBACK(&u->in6); /* lgtm [cpp/potentially-dangerous-function] */ in in_addr_is_localhost()
132 … return IN6_IS_ADDR_LOOPBACK(&u->in6); /* lgtm [cpp/potentially-dangerous-function] */ in in_addr_is_localhost_one()
165 return in6_addr_equal(&a->in6, &b->in6); in in_addr_equal()
205 x = a->in6.s6_addr[i] ^ b->in6.s6_addr[i]; in in_addr_prefix_intersect()
288 u->in6.s6_addr[j] = 0; in in_addr_prefix_nth()
293 u->in6.s6_addr[j] &= 0xff << (8 - (prefixlen - p)); in in_addr_prefix_nth()
294 t = u->in6.s6_addr[j] + ((nth & 0xff) << (8 - (prefixlen - p))); in in_addr_prefix_nth()
297 t = u->in6.s6_addr[j] + (nth & 0xff) + overflow; in in_addr_prefix_nth()
302 u->in6.s6_addr[j] = (uint8_t) (t & 0xff); in in_addr_prefix_nth()
381 u->in6.s6_addr[i] &= mask_fixed_part; in in_addr_random_prefix()
382 u->in6.s6_addr[i] |= n.s6_addr[i] & mask; in in_addr_random_prefix()
679 return in6_addr_mask(&addr->in6, prefixlen); in in_addr_mask()
746 return in6_addr_prefix_covers(&prefix->in6, prefixlen, &address->in6); in in_addr_prefix_covers()