]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
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 | |
10 | typedef struct Network Network; | |
11 | typedef struct Link Link; | |
95b74ef6 | 12 | |
fb486c90 | 13 | typedef 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 | 22 | AddressLabel *address_label_free(AddressLabel *label); |
95b74ef6 | 23 | |
13ffa39f | 24 | void network_drop_invalid_address_labels(Network *network); |
ab316813 | 25 | |
fe2bc17c | 26 | int link_set_address_labels(Link *link); |
95b74ef6 | 27 | |
a2106925 LP |
28 | CONFIG_PARSER_PROTOTYPE(config_parse_address_label); |
29 | CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix); |