]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
fc2f9534 LP |
2 | #pragma once |
3 | ||
71d35b6b | 4 | #include "in-addr-util.h" |
634f0f98 ZJS |
5 | |
6 | typedef struct Manager Manager; | |
fc2f9534 | 7 | |
bfbf150e | 8 | typedef struct AddressPool { |
fc2f9534 LP |
9 | Manager *manager; |
10 | ||
11 | int family; | |
12 | unsigned prefixlen; | |
fc2f9534 | 13 | union in_addr_union in_addr; |
bfbf150e | 14 | } AddressPool; |
fc2f9534 | 15 | |
ed76f585 YW |
16 | int address_pool_setup_default(Manager *m); |
17 | int address_pool_acquire(Manager *m, int family, unsigned prefixlen, union in_addr_union *found); |