]>
Commit | Line | Data |
---|---|---|
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 | 10 | typedef struct Link Link; |
354bc760 | 11 | typedef struct Network Network; |
95b74ef6 | 12 | |
fb486c90 | 13 | typedef 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 | 23 | AddressLabel *address_label_free(AddressLabel *label); |
95b74ef6 | 24 | |
13ffa39f | 25 | void network_drop_invalid_address_labels(Network *network); |
ab316813 | 26 | |
354bc760 | 27 | int link_request_static_address_labels(Link *link); |
95b74ef6 | 28 | |
a2106925 LP |
29 | CONFIG_PARSER_PROTOTYPE(config_parse_address_label); |
30 | CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix); |