2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2015-08-27 13:59:06 +02:00
|
|
|
#pragma once
|
|
|
|
|
2015-11-18 22:46:33 +01:00
|
|
|
#include "in-addr-util.h"
|
2016-04-29 04:52:04 +02:00
|
|
|
|
|
|
|
typedef struct Manager Manager;
|
2015-08-27 13:59:06 +02:00
|
|
|
|
2020-10-02 07:46:29 +02:00
|
|
|
typedef struct AddressPool {
|
2015-08-27 13:59:06 +02:00
|
|
|
Manager *manager;
|
|
|
|
|
|
|
|
int family;
|
|
|
|
unsigned prefixlen;
|
|
|
|
union in_addr_union in_addr;
|
2020-10-02 07:46:29 +02:00
|
|
|
} AddressPool;
|
2015-08-27 13:59:06 +02:00
|
|
|
|
2020-10-02 07:15:57 +02:00
|
|
|
int address_pool_setup_default(Manager *m);
|
|
|
|
int address_pool_acquire(Manager *m, int family, unsigned prefixlen, union in_addr_union *found);
|