Home
last modified time | relevance | path

Searched refs:subnet_bits (Results 1 – 1 of 1) sorted by relevance

/openbsd/usr.sbin/nsd/
H A Doptions.c2421 int subnet_bits = atoi(p); in parse_acl_range_subnet() local
2423 if(subnet_bits == 0 && strcmp(p, "0")!=0) { in parse_acl_range_subnet()
2427 if(subnet_bits < 0 || subnet_bits > maxbits) { in parse_acl_range_subnet()
2428 c_error("subnet of %d bits out of range [0..%d]", subnet_bits, maxbits); in parse_acl_range_subnet()
2432 while(subnet_bits >= 8) { in parse_acl_range_subnet()
2434 subnet_bits -= 8; in parse_acl_range_subnet()
2436 if(subnet_bits > 0) { in parse_acl_range_subnet()
2438 *addr_bytes = shifts[subnet_bits]; in parse_acl_range_subnet()