network: drop support for old kernels which cannot set prefix route with non-main...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Apr 2022 15:45:52 +0000 (00:45 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 21 May 2022 14:09:53 +0000 (15:09 +0100)
commit93a72170bd8a7001abde8c85b65cf0f456c8022e
tree8742d9fc17135c41acd39ffc91ba0c2a35b4855a
parent0168b91603f67db705fede75a8d3bd65533dcd5d
network: drop support for old kernels which cannot set prefix route with non-main route table

Not sure when the issue was fixed.
- kernel-3.10 on CentOS 7 has the issue,
- kernel-4.18 on CentOS 8 works fine.

Note, the workaround dropped by the commit is not incomplete:
with an old kernel which has the issue, all non-prefix routes are
configured on the specified route table, but the prefix route is
configured on the main table. That should not work for most cases,
hence, the workaround is mostly meaningless.
src/network/networkd-dhcp4.c
src/network/networkd-link.h
src/network/networkd-manager.h
test/test-network/systemd-networkd-tests.py