From 10aedb6f9de572e2744ad0f25adf5a715f0306ea Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 2 Feb 2024 13:17:18 +0900 Subject: 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. --- src/network/networkd-address.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/network/networkd-address.c') diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index c86e6d1a0f..848e9e1b8c 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) -- cgit v1.2.3