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