]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-address-pool.h
Merge pull request #33199 from DaanDeMeyer/optimization
[thirdparty/systemd.git] / src / network / networkd-address-pool.h
CommitLineData
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
6typedef struct Manager Manager;
fc2f9534 7
bfbf150e 8typedef 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
16int address_pool_setup_default(Manager *m);
17int address_pool_acquire(Manager *m, int family, unsigned prefixlen, union in_addr_union *found);