]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: do not request DHCP addresses configured on checking prefix delegation
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Feb 2024 19:30:34 +0000 (04:30 +0900)
committerLuca Boccassi <bluca@debian.org>
Sat, 17 Feb 2024 11:48:25 +0000 (11:48 +0000)
commitb4054aff24b326e36008e6174b5737e0917405c1
treed7444a5df13cc2b3118850072ff3d653a1e9fc20
parent43a752669e5ec60b1a688e611266db33dba39dcb
network: do not request DHCP addresses configured on checking prefix delegation

This does not change anything for DHCPv4, as a DHCPv4 address is always
requested anyway. However for DHCPv6, the client may not request IA_NA
addresses by UseAddress=no, or even if it is requested, the server may
not provide any IA_NA addresses. Even in such cases, here the check is
for delegated prefixes, hence it is not necessary to check if DHCPv6
IA_NA addresses are configured.

Fixes a bug introduced by 195b83edf852f4e40e0d3a3b630cde97c84d77ba.

Fixes #31349.
src/network/networkd-link.c