Lines Matching defs:prefixlen
31 unsigned prefixlen) {
45 p->prefixlen = prefixlen;
59 unsigned prefixlen) {
72 return address_pool_new(m, ret, family, &u, prefixlen);
89 unsigned prefixlen) {
107 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen))
116 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen))
129 if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen))
137 int address_pool_acquire(AddressPool *p, unsigned prefixlen, union in_addr_union *found) {
141 assert(prefixlen > 0);
144 if (p->prefixlen > prefixlen)
149 if (!address_pool_prefix_is_taken(p, &u, prefixlen)) {
153 log_debug("Found range %s/%u", strna(s), prefixlen);
159 if (!in_addr_prefix_next(p->family, &u, prefixlen))
162 if (!in_addr_prefix_intersect(p->family, &p->in_addr, p->prefixlen, &u, prefixlen))