1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright © 2017 Intel Corporation. All rights reserved.
8 #include "conf-parser.h"
9 #include "networkd-address.h"
10 #include "networkd-link.h"
12 typedef struct Prefix Prefix
;
16 NetworkConfigSection
*section
;
18 sd_radv_prefix
*radv_prefix
;
20 LIST_FIELDS(Prefix
, prefixes
);
23 int prefix_new(Prefix
**ret
);
24 void prefix_free(Prefix
*prefix
);
25 int prefix_new_static(Network
*network
, const char *filename
, unsigned section
, Prefix
**ret
);
27 DEFINE_TRIVIAL_CLEANUP_FUNC(Prefix
*, prefix_free
);
29 CONFIG_PARSER_PROTOTYPE(config_parse_router_prefix_delegation
);
30 CONFIG_PARSER_PROTOTYPE(config_parse_router_preference
);
31 CONFIG_PARSER_PROTOTYPE(config_parse_prefix
);
32 CONFIG_PARSER_PROTOTYPE(config_parse_prefix_flags
);
33 CONFIG_PARSER_PROTOTYPE(config_parse_prefix_lifetime
);
35 int radv_emit_dns(Link
*link
);
36 int radv_configure(Link
*link
);