1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2017 Intel Corporation. All rights reserved.
10 #include "conf-parser.h"
11 #include "networkd-address.h"
12 #include "networkd-link.h"
14 typedef struct Prefix Prefix
;
18 NetworkConfigSection
*section
;
20 sd_radv_prefix
*radv_prefix
;
22 LIST_FIELDS(Prefix
, prefixes
);
25 int prefix_new(Prefix
**ret
);
26 void prefix_free(Prefix
*prefix
);
27 int prefix_new_static(Network
*network
, const char *filename
, unsigned section
, Prefix
**ret
);
29 DEFINE_TRIVIAL_CLEANUP_FUNC(Prefix
*, prefix_free
);
31 CONFIG_PARSER_PROTOTYPE(config_parse_router_prefix_delegation
);
32 CONFIG_PARSER_PROTOTYPE(config_parse_router_preference
);
33 CONFIG_PARSER_PROTOTYPE(config_parse_prefix
);
34 CONFIG_PARSER_PROTOTYPE(config_parse_prefix_flags
);
35 CONFIG_PARSER_PROTOTYPE(config_parse_prefix_lifetime
);
37 int radv_emit_dns(Link
*link
);
38 int radv_configure(Link
*link
);