1 /* SPDX-License-Identifier: LGPL-2.1+ */
7 #include "conf-parser.h"
8 #include "in-addr-util.h"
10 typedef struct AddressLabel AddressLabel
;
12 #include "networkd-link.h"
13 #include "networkd-network.h"
14 #include "networkd-util.h"
16 typedef struct Network Network
;
17 typedef struct Link Link
;
18 typedef struct NetworkConfigSection NetworkConfigSection
;
22 NetworkConfigSection
*section
;
24 unsigned char prefixlen
;
27 union in_addr_union in_addr
;
29 LIST_FIELDS(AddressLabel
, labels
);
32 void address_label_free(AddressLabel
*label
);
34 DEFINE_NETWORK_SECTION_FUNCTIONS(AddressLabel
, address_label_free
);
36 int address_label_configure(AddressLabel
*address
, Link
*link
, link_netlink_message_handler_t callback
, bool update
);
38 CONFIG_PARSER_PROTOTYPE(config_parse_address_label
);
39 CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix
);