]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-address-pool.h
bc335fc70af3f292f066cd86b3942412d498a8a5
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2014 Lennart Poettering
10 typedef struct AddressPool AddressPool
;
12 #include "in-addr-util.h"
15 typedef struct Manager Manager
;
23 union in_addr_union in_addr
;
25 LIST_FIELDS(AddressPool
, address_pools
);
28 int address_pool_new(Manager
*m
, AddressPool
**ret
, int family
, const union in_addr_union
*u
, unsigned prefixlen
);
29 int address_pool_new_from_string(Manager
*m
, AddressPool
**ret
, int family
, const char *p
, unsigned prefixlen
);
30 void address_pool_free(AddressPool
*p
);
32 int address_pool_acquire(AddressPool
*p
, unsigned prefixlen
, union in_addr_union
*found
);