Lines Matching refs:mask
533 * Construct a mask for an IPv4 address using the @<dotted-ip>/<len>
534 * syntax or use the default mask for the IP address.
539 uint_t mask;
543 * If the mask is specified explicitly then
548 * otherwise assume a mask from the zero octets
555 mask = bits ? ~0 << ((sizeof (struct in_addr) * NBBY) - bits)
557 addr &= mask;
560 mask = IN_CLASSA_NET;
562 mask = IN_CLASSB_NET;
564 mask = IN_CLASSC_NET;
566 mask = IN_CLASSE_NET;
569 return (mask);
589 uint_t addr, mask;
635 mask = smb_make_mask(mp, addr);
636 return ((claddr & mask) == addr);