]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.h
networkd-dhcp6: Request prefix delegation for a new link 10257/head
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 2 Oct 2018 18:29:09 +0000 (12:29 -0600)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 2 Oct 2018 18:32:46 +0000 (12:32 -0600)
commit107523437c82de3cca2c444e828382ad5ba4149d
tree61640016a017a71e4d044323ea7c5c9318ba562a
parent03d4fc2ed2193dd6a6af45218fff03ebd031de4a
networkd-dhcp6: Request prefix delegation for a new link

Request prefix delegation for a new downstream link that is enabled
after any number of upstream DHCPv6 links. Submit the request after
the link has been configured with a link-local address.

If the upstream DHCPv6 client has already been configured to request
prefixes, attempt to re-assign any possible prefixes between the
already existing links and the new one. If no prefixes are yet
acquired, nothing will happen right away and any prefixes will be
distributed after a reply from the DHCPv6 server.

If none of the already existing downstream links have requested
DHCPv6 prefixes to be assigned, enable prefix delegation for each
client and restart them one by one if they are already running. This
causes the DHCPv6 clients to re-acquire addresses and prefixes and
to re-distribute them to all links when receiving an updated
response from their respective DHCPv6 servers. If the DHCPv6 client
in question was not already running, it is set to request prefixes
but not restarted.

When an error occurs while setting or restarting the DHCPv6 client,
log the incident and move over to the next link.

Fixes #9758.
src/network/networkd-dhcp6.c
src/network/networkd-link.c
src/network/networkd-link.h