]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - src/network/networkd-address-label.h
network: tc: rename several settings which take size in bytes
[thirdparty/systemd.git] / src / network / networkd-address-label.h
... / ...
CommitLineData
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#include <inttypes.h>
5#include <stdbool.h>
6
7#include "conf-parser.h"
8#include "in-addr-util.h"
9
10typedef struct AddressLabel AddressLabel;
11
12#include "networkd-link.h"
13#include "networkd-network.h"
14#include "networkd-util.h"
15
16typedef struct Network Network;
17typedef struct Link Link;
18typedef struct NetworkConfigSection NetworkConfigSection;
19
20struct AddressLabel {
21 Network *network;
22 NetworkConfigSection *section;
23
24 unsigned char prefixlen;
25 uint32_t label;
26
27 union in_addr_union in_addr;
28
29 LIST_FIELDS(AddressLabel, labels);
30};
31
32void address_label_free(AddressLabel *label);
33
34DEFINE_NETWORK_SECTION_FUNCTIONS(AddressLabel, address_label_free);
35
36int address_label_configure(AddressLabel *address, Link *link, link_netlink_message_handler_t callback, bool update);
37
38CONFIG_PARSER_PROTOTYPE(config_parse_address_label);
39CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix);