Lines Matching refs:mask
158 in6_addr_t prefix, mask;
213 if (ip_plen_to_mask_v6(plen, &mask) == NULL) {
263 tmp_policy[entryindex].ip6_asp_mask = mask;
417 * This function takes a mask and returns number of bits set in the
418 * mask (the represented prefix length). Assumes a contigious mask.
424 uint32_t mask;
444 mask = ntohl(v6mask->_S6_un._S6_u32[i]);
445 if (mask == 0)
448 return (bits + 32 - (ffs(mask) - 1));
454 * Convert a prefix length to the mask for that prefix.