]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
091214b6 PF |
2 | #pragma once |
3 | ||
4 | /*** | |
96b2fb93 | 5 | Copyright © 2017 Intel Corporation. All rights reserved. |
091214b6 PF |
6 | ***/ |
7 | ||
a2106925 | 8 | #include "conf-parser.h" |
6e849e95 | 9 | #include "networkd-address.h" |
091214b6 | 10 | #include "networkd-link.h" |
fcbf4cb7 | 11 | #include "networkd-util.h" |
091214b6 | 12 | |
6e849e95 PF |
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); | |
6e849e95 | 26 | |
fcbf4cb7 | 27 | DEFINE_NETWORK_SECTION_FUNCTIONS(Prefix, prefix_free); |
6e849e95 | 28 | |
a2106925 LP |
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); | |
6e849e95 | 34 | |
c555a358 | 35 | int radv_emit_dns(Link *link); |
091214b6 | 36 | int radv_configure(Link *link); |