summaryrefslogtreecommitdiff
path: root/src/network/networkd-address-pool.h
blob: c53fe7407febbd3438444b985f2d840a1fc57aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: LGPL-2.1+ */
#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);