Lines Matching defs:bits
73 srclimit_mask_addr(const struct xaddr *addr, int bits, struct xaddr *masked)
78 if (addr_netmask(addr->af, bits, &xmask) != 0 ||
80 debug3_f("%s: invalid mask %d bits", __func__, bits);
135 int i, bits, first_unused, count = 0;
144 bits = xa.af == AF_INET ? ipv4_masklen : ipv6_masklen;
145 if (srclimit_mask_addr(&xa, bits, &xb) != 0)
163 __func__, xas, bits, count, max_persource);
266 int bits, max_sources, overflow_mode;
296 bits = addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
298 if (srclimit_mask_addr(&addr, bits, &find.addr) != 0)
318 int bits;
325 bits = p->addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
326 addr_masklen_ntop(&p->addr, bits, s, sizeof(s));
353 int bits, penalty_secs, max_sources = 0, overflow_mode;
393 bits = addr->af == AF_INET ? ipv4_masklen : ipv6_masklen;
394 if (srclimit_mask_addr(addr, bits, &masked) != 0)
396 addr_masklen_ntop(addr, bits, addrnetmask, sizeof(addrnetmask));
465 int bits;
472 bits = p->addr.af == AF_INET ? ipv4_masklen : ipv6_masklen;
473 addr_masklen_ntop(&p->addr, bits, s, sizeof(s));