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