Lines Matching refs:nbits
76 unsigned int nbits; /* Number of significant leftover bits */ in isc_netaddr_eqprefix() local
108 nbits = prefixlen % 8; in isc_netaddr_eqprefix()
114 if (nbits > 0) { in isc_netaddr_eqprefix()
117 INSIST(nbits < 8); in isc_netaddr_eqprefix()
120 mask = (0xFF << (8-nbits)) & 0xFF; in isc_netaddr_eqprefix()
218 unsigned int nbits, nbytes, ipbytes = 0; in isc_netaddr_prefixok() local
238 nbits = prefixlen % 8; in isc_netaddr_prefixok()
239 if (nbits != 0) { in isc_netaddr_prefixok()
240 if ((p[nbytes] & (0xff>>nbits)) != 0U) in isc_netaddr_prefixok()
251 unsigned int nbits = 0, nbytes = 0, ipbytes = 0, i; in isc_netaddr_masktoprefixlen() local
273 while ((c & 0x80) != 0 && nbits < 8) { in isc_netaddr_masktoprefixlen()
274 c <<= 1; nbits++; in isc_netaddr_masktoprefixlen()
284 *lenp = nbytes * 8 + nbits; in isc_netaddr_masktoprefixlen()