From: Yu Watanabe Date: Fri, 2 Feb 2024 04:17:18 +0000 (+0900) Subject: network/address: do not configure with IFA_F_TENTATIVE X-Git-Tag: v256-rc1~954 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10aedb6f9de572e2744ad0f25adf5a715f0306ea;p=thirdparty%2Fsystemd.git network/address: do not configure with IFA_F_TENTATIVE Follow-up for 0a0c2672dbd22dc85d660e5baa7e1bef701beb88. After the commit, remembered Address objects by Link are always given by kernel. Hence, it is not necessary to set the flag, as it is always ignored by the kernel, and the kernel set the flag on notification if it is necessary. --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index c86e6d1a0f9..848e9e1b8cf 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -1600,9 +1600,6 @@ int link_request_address( if (r < 0) return log_link_warning_errno(link, r, "Failed to acquire an address from pool: %m"); - /* Consider address tentative until we get the real flags from the kernel */ - tmp->flags |= IFA_F_TENTATIVE; - } else { r = address_dup(address, &tmp); if (r < 0)