summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-08-15 19:16:53 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-08-16 11:52:24 +0200
commit239f91f71cc9a59947b97441628b426d483ae4c4 (patch)
tree04f6cbdb86deaeadf0ef4bb3a4b021f516cf3ea3 /src/network/networkd-network.h
parentnetwork: can: add missing control modes (diff)
downloadsystemd-239f91f71cc9a59947b97441628b426d483ae4c4.tar.xz
systemd-239f91f71cc9a59947b97441628b426d483ae4c4.zip
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.
Diffstat (limited to '')
-rw-r--r--src/network/networkd-network.h3
1 files changed, 2 insertions, 1 deletions
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;