]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/address: do not configure with IFA_F_TENTATIVE
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Feb 2024 04:17:18 +0000 (13:17 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 7 Feb 2024 10:21:12 +0000 (10:21 +0000)
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.

src/network/networkd-address.c

index c86e6d1a0f9431eb63381cb019c64ac3e9ab8670..848e9e1b8cf4896c8dee2b3c479f470a7ef11269 100644 (file)
@@ -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)