]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-radv.h
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / src / network / networkd-radv.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
091214b6
PF
2#pragma once
3
4/***
091214b6 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
PF
10#include "networkd-link.h"
11
6e849e95
PF
12typedef struct Prefix Prefix;
13
14struct Prefix {
15 Network *network;
16 NetworkConfigSection *section;
17
18 sd_radv_prefix *radv_prefix;
19
20 LIST_FIELDS(Prefix, prefixes);
21};
22
23int prefix_new(Prefix **ret);
24void prefix_free(Prefix *prefix);
a2106925 25int prefix_new_static(Network *network, const char *filename, unsigned section, Prefix **ret);
6e849e95
PF
26
27DEFINE_TRIVIAL_CLEANUP_FUNC(Prefix*, prefix_free);
6e849e95 28
a2106925
LP
29CONFIG_PARSER_PROTOTYPE(config_parse_router_prefix_delegation);
30CONFIG_PARSER_PROTOTYPE(config_parse_router_preference);
31CONFIG_PARSER_PROTOTYPE(config_parse_prefix);
32CONFIG_PARSER_PROTOTYPE(config_parse_prefix_flags);
33CONFIG_PARSER_PROTOTYPE(config_parse_prefix_lifetime);
6e849e95 34
c555a358 35int radv_emit_dns(Link *link);
091214b6 36int radv_configure(Link *link);