]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-address-label.h
Merge pull request #33008 from fbuihuu/optionally-link-ssh-dropins
[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 9
95b74ef6 10typedef struct Link Link;
354bc760 11typedef struct Network Network;
95b74ef6 12
fb486c90 13typedef struct AddressLabel {
95b74ef6 14 Network *network;
307fe3cd 15 ConfigSection *section;
95b74ef6 16
95b74ef6 17 uint32_t label;
834f4294
YW
18 struct in6_addr prefix;
19 unsigned char prefixlen;
20 bool prefix_set;
fb486c90 21} AddressLabel;
95b74ef6 22
cae418a3 23AddressLabel *address_label_free(AddressLabel *label);
95b74ef6 24
13ffa39f 25void network_drop_invalid_address_labels(Network *network);
ab316813 26
354bc760 27int link_request_static_address_labels(Link *link);
95b74ef6 28
a2106925
LP
29CONFIG_PARSER_PROTOTYPE(config_parse_address_label);
30CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix);