diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-02-02 05:17:18 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-02-07 11:21:12 +0100 |
commit | 10aedb6f9de572e2744ad0f25adf5a715f0306ea (patch) | |
tree | 2c5fbfe48555709da640ba88e96b79d13d9ada70 | |
parent | Merge pull request #31202 from YHNdnzj/creds-reuse (diff) | |
download | systemd-10aedb6f9de572e2744ad0f25adf5a715f0306ea.tar.xz systemd-10aedb6f9de572e2744ad0f25adf5a715f0306ea.zip |
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.
-rw-r--r-- | src/network/networkd-address.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) |