]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: do not try to update IP sysctl settings for CAN devices
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Nov 2023 19:56:58 +0000 (04:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 01:47:42 +0000 (10:47 +0900)
commitf43ce810c408ee491b6edfc14c7680ee29274238
treedb14a6e7c8645eb5e0d9150dde501f1dd82a88b7
parent01a88375e3543d3ae6b19927cec23966aff39a1c
network: do not try to update IP sysctl settings for CAN devices

CAN devices do not support IP layer.

Most of the functions below are never called for CAN devices, but
link_set_ipv6_mtu() may be called after setting interface MTU, and warn
about the failure.

For safety, let's unconditionally check if the interface is not a CAN
device.
src/network/networkd-sysctl.c