summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-01-04 17:10:56 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-01-05 10:04:18 +0100
commit2743854540c2325ce025bdbdbab8c1a582c0ba0a (patch)
treefc07ea25d58ada2fa9a85720d2276206f957f80f /src/network/networkd-link.c
parentcore/cgroup: use designated initializer more, make dup source const (diff)
downloadsystemd-2743854540c2325ce025bdbdbab8c1a582c0ba0a.tar.xz
systemd-2743854540c2325ce025bdbdbab8c1a582c0ba0a.zip
network: do not make the implied default have the first priority
Follow-up for b732606950f8726c0280080c7d055a714c2888f5 and 6706ce2fd2a13df0ae5e469b72d688eaf643dac4. If Network.ignore_carrier_loss_set flag is set, then the timeout value is always used, hence the logic implemented by b732606950f8726c0280080c7d055a714c2888f5 never worked.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 26fa8a115d..01817737d0 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1665,7 +1665,7 @@ static int link_carrier_lost(Link *link) {
usec = 5 * USEC_PER_SEC;
else
- /* Otherwise, use the currently set value. */
+ /* Otherwise, use the implied default value. */
usec = link->network->ignore_carrier_loss_usec;
if (usec == USEC_INFINITY)