]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-radv.h
network: drop sections contain invalid settings in network_verify()
[thirdparty/systemd.git] / src / network / networkd-radv.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright © 2017 Intel Corporation. All rights reserved.
6 ***/
7
8 #include "conf-parser.h"
9 #include "networkd-address.h"
10 #include "networkd-link.h"
11 #include "networkd-util.h"
12
13 typedef struct Prefix Prefix;
14
15 struct Prefix {
16 Network *network;
17 NetworkConfigSection *section;
18
19 sd_radv_prefix *radv_prefix;
20
21 LIST_FIELDS(Prefix, prefixes);
22 };
23
24 int prefix_new(Prefix **ret);
25 void prefix_free(Prefix *prefix);
26
27 DEFINE_NETWORK_SECTION_FUNCTIONS(Prefix, prefix_free);
28
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);
34
35 int radv_emit_dns(Link *link);
36 int radv_configure(Link *link);