]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-address-label.h
license: LGPL-2.1+ -> LGPL-2.1-or-later
[thirdparty/systemd.git] / src / network / networkd-address-label.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
95b74ef6
SS
2#pragma once
3
95b74ef6 4#include <inttypes.h>
95b74ef6 5
a2106925 6#include "conf-parser.h"
95b74ef6 7#include "in-addr-util.h"
fcbf4cb7 8#include "networkd-util.h"
95b74ef6
SS
9
10typedef struct Network Network;
11typedef struct Link Link;
95b74ef6 12
fb486c90 13typedef struct AddressLabel {
95b74ef6 14 Network *network;
95b74ef6
SS
15 NetworkConfigSection *section;
16
95b74ef6
SS
17 unsigned char prefixlen;
18 uint32_t label;
95b74ef6 19 union in_addr_union in_addr;
fb486c90 20} AddressLabel;
95b74ef6 21
cae418a3 22AddressLabel *address_label_free(AddressLabel *label);
95b74ef6 23
13ffa39f 24void network_drop_invalid_address_labels(Network *network);
ab316813 25
fe2bc17c 26int link_set_address_labels(Link *link);
95b74ef6 27
a2106925
LP
28CONFIG_PARSER_PROTOTYPE(config_parse_address_label);
29CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix);