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"
15 typedef struct Network Network
;
16 typedef struct Link Link
;
17 typedef struct NetworkConfigSection NetworkConfigSection
;
21 NetworkConfigSection
*section
;
23 unsigned char prefixlen
;
26 union in_addr_union in_addr
;
28 LIST_FIELDS(AddressLabel
, labels
);
31 void address_label_free(AddressLabel
*label
);
33 DEFINE_TRIVIAL_CLEANUP_FUNC(AddressLabel
*, address_label_free
);
35 int address_label_configure(AddressLabel
*address
, Link
*link
, link_netlink_message_handler_t callback
, bool update
);
37 CONFIG_PARSER_PROTOTYPE(config_parse_address_label
);
38 CONFIG_PARSER_PROTOTYPE(config_parse_address_label_prefix
);