]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-network.c
network: dhcp6: introduce UseDelegatedPrefix= setting and enable by default
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Oct 2021 07:26:09 +0000 (16:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Oct 2021 11:29:08 +0000 (20:29 +0900)
commit0f5ef9b62a8f454208db69f3219c7484f87a068a
tree4e9d7a94fbb689597097597cabf2b655ae8997d1
parent48538c19e518f6ec667beeed8d7af5bf4503ebcc
network: dhcp6: introduce UseDelegatedPrefix= setting and enable by default

Previously, the prefix delegation is enabled when at least one
downstream interfaces request it. But, when the DHCPv6 client on the
upstream interface is configured, some downstream interfaces may not
exist yet, nor have .network file assigned.

Also, if a system has thousands of interfaces, then the previous logic
introduce O(n^2) search.

This makes the prefix delegation is always enabled, except when it is
explicitly disabled. Hopefully, that should not break anything, as the
DHCPv6 server should ignore the prefix delegation request if the server
do not have any prefix to delegate.
man/systemd.network.xml
src/network/networkd-dhcp6.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h
test/fuzz/fuzz-network-parser/directives.network