]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/test-network/systemd-networkd-tests.py
network/ndisc: do not set per-route MTU and hop limit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 03:05:07 +0000 (12:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 19:59:38 +0000 (04:59 +0900)
commit2e73aa507b9f1d5d74e43cd9b812fc1cfff795cb
tree7901c7c8650ca5a0d4bdfe913cd59684b2a1263a
parent3ec49af97332050701a1e2cc08390aa76d40585a
network/ndisc: do not set per-route MTU and hop limit

Setting MTU announced in RA message to routes is problematic, as the
value may be larger than the device MTU (IFLA_MTU), and in such case the
route cannot be used.

These two properties are now set per-interface, and gracefully handled
such invalid cases. Hence not necessary to set them to each route.

Follow-up for #32195.
src/network/networkd-ndisc.c
test/test-network/systemd-networkd-tests.py