]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network/sysctl: round IPv6 MTU with the current device MTU rather than the maximum MTU
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Apr 2024 01:07:50 +0000 (10:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Apr 2024 03:15:33 +0000 (12:15 +0900)
commitfb71748e4f8596e9a2878c3a8968ec81b7b32d84
tree3f3969f6befec1dc457958535111d7dcafba8769
parenteb426caae79ae2929213702d40411793b209b942
network/sysctl: round IPv6 MTU with the current device MTU rather than the maximum MTU

Otherwise, writing IPv6 MTU may fail.

This also makes link_set_ipv6_mtu() take log level about rounding IPv6 MTU,
and downgrade the log level from LOG_WARNING -> LOG_INFO, as we usually
use LOG_WARNING for per-interface critical failure.
src/network/networkd-link.c
src/network/networkd-sysctl.c
src/network/networkd-sysctl.h