]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: use scope link for direct unicast routes by default
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Jan 2022 12:42:28 +0000 (21:42 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 13 Jan 2022 22:46:52 +0000 (22:46 +0000)
commit902bbdc4b60269f456a1cea81f4c0f1c0f7a6d8a
treee2354391e8c4da91ea8009d34579418b67fb4979
parentfad7ad2b8b28d0e4595697a36f654c936ca4ad4d
network: use scope link for direct unicast routes by default

Strictly speaking, this breaks the backward compatibility, but I guess
in most cases people already sets Scope=link for such routes.

This behavior matches with how 'ip route' command adds such route by
default.

Prompted by https://twitter.com/jplitza/status/1480500562391179270.
man/systemd.network.xml
src/network/networkd-route.c
test/test-network/conf/25-route-static.network
test/test-network/systemd-networkd-tests.py