Lines Matching defs:netmask
304 struct in_addr if_netmask; /* netmask in network order */
506 uint32_t mask, netmask, clnt_addr, if_addr;
518 netmask = ntohl(ifn->if_netmask.s_addr); /* host order */
522 * set initial count to first bit set in netmask, with
526 for (mask = netmask; mask && ((mask & 1) == 0); mask >>= 1)
531 * than the inherent netmask for the class (A, B, C, etc).
543 * We assume that the netmask consists of a contiguous
557 while (netmask && count < subnet_count) {
558 if ((netmask & clnt_addr) == (netmask & if_addr)) {
564 netmask <<= 1;
573 if (found && (netmask == ntohl(ifn->if_netmask.s_addr))) {