diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-04 17:10:56 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-05 10:04:18 +0100 |
commit | 2743854540c2325ce025bdbdbab8c1a582c0ba0a (patch) | |
tree | fc07ea25d58ada2fa9a85720d2276206f957f80f /src/network/networkd-link.c | |
parent | core/cgroup: use designated initializer more, make dup source const (diff) | |
download | systemd-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.c | 2 |
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) |