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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user