summaryrefslogtreecommitdiff
path: root/src/network/networkd-address-pool.h
blob: 93bdec82e3fced798a33ee085b1b673dcbd2ea3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once

#include "in-addr-util.h"

typedef struct Manager Manager;

typedef struct AddressPool {
        Manager *manager;

        int family;
        unsigned prefixlen;
        union in_addr_union in_addr;
} AddressPool;

int address_pool_setup_default(Manager *m);
int address_pool_acquire(Manager *m, int family, unsigned prefixlen, union in_addr_union *found);