diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-16 17:35:34 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-16 20:05:43 +0100 |
commit | 3255bda698d2a02ab2f2825a1e652ac6f0871a89 (patch) | |
tree | 95f7c9b1571fb7987e004ee9ead20c933a04b189 /src/network/networkd-network.c | |
parent | wait-online: several cleanups for LinkOperationalState (diff) | |
download | systemd-3255bda698d2a02ab2f2825a1e652ac6f0871a89.tar.xz systemd-3255bda698d2a02ab2f2825a1e652ac6f0871a89.zip |
network: make 'carrier' as the default required operational state for CAN device
As CAN devices do not support IP address, hence the state never goes to
higher than 'carrier'.
Prompted by https://github.com/linux-can/can-utils/issues/68#issuecomment-1327987724.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 845a8130bd..08c7da5699 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -372,7 +372,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi .n_ref = 1, .required_for_online = -1, - .required_operstate_for_online = LINK_OPERSTATE_RANGE_DEFAULT, + .required_operstate_for_online = LINK_OPERSTATE_RANGE_INVALID, .activation_policy = _ACTIVATION_POLICY_INVALID, .group = -1, .arp = -1, @@ -1221,7 +1221,7 @@ int config_parse_required_for_online( if (isempty(rvalue)) { network->required_for_online = -1; - network->required_operstate_for_online = LINK_OPERSTATE_RANGE_DEFAULT; + network->required_operstate_for_online = LINK_OPERSTATE_RANGE_INVALID; return 0; } |