summaryrefslogtreecommitdiff
path: root/src/network/networkd-radv.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2018-01-04 15:11:39 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2018-01-04 15:22:43 +0200
commit56a23cb40aadea95f7e24a911ba973fe132878b8 (patch)
tree8882458389433a8255af5662036aead8c0e7e554 /src/network/networkd-radv.h
parent6e849e95ad52863c03b0d3ad3d830e0ef97f29f0 (diff)
downloadsystemd-56a23cb40aadea95f7e24a911ba973fe132878b8.tar.gz
networkd: Add DHCPv6 as a configuration option to radv prefixes
The Network section IPv6PrefixDelegation= option takes two new configuration values, namely "static" and "dhcpv6" in addition to boolean yes and no values. Static prefixes in IPv6Prefix sections are used when IPv6PrefixDelegation= option contains "static", and DHCPv6 is queried for prefixes when the option contains "dhcpv6". Both DHCPv6 and static prefixes are used when the option contains a boolean true value. The default value is false as before, meaning no prefixes are delegated.
Diffstat (limited to 'src/network/networkd-radv.h')
-rw-r--r--src/network/networkd-radv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-radv.h b/src/network/networkd-radv.h
index a31a9f0e15..22a169d263 100644
--- a/src/network/networkd-radv.h
+++ b/src/network/networkd-radv.h
@@ -42,6 +42,7 @@ int prefix_new_static(Network *network, const char *filename, unsigned section,
DEFINE_TRIVIAL_CLEANUP_FUNC(Prefix*, prefix_free);
#define _cleanup_prefix_free_ _cleanup_(prefix_freep)
+int config_parse_router_prefix_delegation(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_router_preference(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_prefix(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_prefix_flags(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);