summaryrefslogtreecommitdiff
path: root/src/network/networkd-radv.h
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-05-14 00:54:37 +0200
committerAndreas Rammhold <andreas@rammhold.de>2020-05-26 12:41:22 +0200
commit02e9e34bd9a8a252610e181533e477ec10733e27 (patch)
tree9a5872c6e0fea19cc877bb52e041c7e13461ec49 /src/network/networkd-radv.h
parent171f625b9e1b942e6d61f4706f26864b7c9b1452 (diff)
downloadsystemd-02e9e34bd9a8a252610e181533e477ec10733e27.tar.gz
networkd: Add support for setting a preferred subnet id for IPv6 PD leases
This allows users to configure a subnet id that should be used instead of automatically (sequentially) assigned subnets. The previous attempt had the downside that the subnet id would not be the same between networkd restarts. In some setups it is desirable to have predictable subnet ids across restarts of services and systems. The code for the assignment had to be broken up into two pieces. One of them is the old (sequential) assignment of prefixes and the other is the new assignment based on configured subnet ids. The new assignment code has to be executed first and has to be taken into account when (later on) allocating the "old" subnets from the same pool. Instead of having one iteration through the links we are now trying to allocate a prefix for every link on every delegated prefix, unless they received an assignment in a previous iteration.
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 8bf697aff0..b115243ef5 100644
--- a/src/network/networkd-radv.h
+++ b/src/network/networkd-radv.h
@@ -58,6 +58,7 @@ RADVPrefixDelegation radv_prefix_delegation_from_string(const char *s) _pure_;
CONFIG_PARSER_PROTOTYPE(config_parse_router_prefix_delegation);
CONFIG_PARSER_PROTOTYPE(config_parse_router_preference);
+CONFIG_PARSER_PROTOTYPE(config_parse_router_prefix_subnet_id);
CONFIG_PARSER_PROTOTYPE(config_parse_prefix);
CONFIG_PARSER_PROTOTYPE(config_parse_prefix_flags);
CONFIG_PARSER_PROTOTYPE(config_parse_prefix_lifetime);