From 239f91f71cc9a59947b97441628b426d483ae4c4 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 16 Aug 2021 02:16:53 +0900 Subject: network: can: make Termination= optionally take a raw resistor value Note that this slightly breaks backward compatibility when Termination=1. Previously, this is handled as boolean true, then 120 ohm was used. But now with this commit, it is handled as 1 ohm. --- src/network/networkd-network.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network/networkd-network.h') diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index 1fa223fd73..488d49e3ac 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -270,7 +270,8 @@ struct Network { usec_t can_restart_us; uint32_t can_control_mode_mask; uint32_t can_control_mode_flags; - int can_termination; + uint16_t can_termination; + bool can_termination_set; /* sysctl settings */ AddressFamily ip_forward; -- cgit v1.2.3