Lines Matching refs:prefixlen
16 unsigned prefixlen) { in address_pool_new() argument
31 .prefixlen = prefixlen, in address_pool_new()
47 unsigned prefixlen) { in address_pool_new_from_string() argument
59 return address_pool_new(m, family, &u, prefixlen); in address_pool_new_from_string()
90 unsigned prefixlen) { in address_pool_prefix_is_taken() argument
106 … if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen)) in address_pool_prefix_is_taken()
119 … if (in_addr_prefix_intersect(p->family, u, prefixlen, &a->in_addr, a->prefixlen)) in address_pool_prefix_is_taken()
127 static int address_pool_acquire_one(AddressPool *p, int family, unsigned prefixlen, union in_addr_u… in address_pool_acquire_one() argument
132 assert(prefixlen > 0); in address_pool_acquire_one()
138 if (p->prefixlen >= prefixlen) in address_pool_acquire_one()
144 r = in_addr_random_prefix(p->family, &u, p->prefixlen, prefixlen); in address_pool_acquire_one()
148 if (!address_pool_prefix_is_taken(p, &u, prefixlen)) { in address_pool_acquire_one()
152 (void) in_addr_prefix_to_string(p->family, &u, prefixlen, &s); in address_pool_acquire_one()
164 int address_pool_acquire(Manager *m, int family, unsigned prefixlen, union in_addr_union *found) { in address_pool_acquire() argument
170 assert(prefixlen > 0); in address_pool_acquire()
174 r = address_pool_acquire_one(p, family, prefixlen, found); in address_pool_acquire()