Lines Matching refs:mask
279 u_int32_t mask;
292 if ((addr & netlist[i].mask) == netlist[i].net)
293 return (netlist[i].mask);
301 register u_int32_t net, mask;
309 mask = 0;
328 mask = htonl(inet_addr(cp));
329 if ((int)mask == -1) {
331 (void)sprintf(errstr, "bad mask \"%s\"", cp);
343 *errstrp = "wrong number of dots in mask";
353 *errstrp = "bad mask width";
356 mask = 0xffffffff << (32 - w);
371 if ((net & ~ mask) != 0) {
398 netlist[netlistcnt].mask = mask;
1036 u_int32_t net, mask;
1055 mask = 0;
1058 !parseinaddr(domain, &net, &mask)) {
1177 mask = 0;
1180 !parseinaddr(domain, &net, &mask)) {
1349 addr = parseptr(name, net, mask, &errstr);
1786 register u_int32_t addr, lastaddr, mask;
1988 mask = findmask(ip->addr);
1989 if (mask == 0) {
1992 "%s: can't find mask for %s (%s)\n",
1994 } else if ((lastaip->addr & mask) ==
1995 (ip->addr & mask) ) {
2000 intoa(ip->addr & mask));
2052 register u_int32_t o, net, mask;
2057 mask = 0xff000000;
2065 /* Check for classless delegation mask width */
2084 mask = 0xffff0000;
2092 mask = 0xffffff00;
2100 mask = 0xffffffff;
2108 /* XXX check that calculated mask isn't smaller than octet mask? */
2110 for (mask = 0, i = 31; bits > 0; --i, --bits)
2111 mask |= (1 << i);
2114 *maskp = mask;
2119 parseptr(register const char *cp, u_int32_t net, u_int32_t mask,
2158 if ((~mask & net) != 0) {