]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/test-network/systemd-networkd-tests.py
network: add fallback logic for old kernels 12818/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 02:25:31 +0000 (11:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Jul 2019 02:36:11 +0000 (11:36 +0900)
commitdd9b10c84fae150d1ea2c2af85981618dd571983
tree54577a7ad6217333baebab90c00cc07f874a0451
parent156ddf8df7e0182254419095e86db98f54ab2912
network: add fallback logic for old kernels

It seems that old kernels do not support prefix routes with
non-default route tables. This adds a fallback logic when adding route
fails. In that case, prefix route is created by kernel and the default
route table is used.
src/network/networkd-dhcp4.c
src/network/networkd-link.h
src/network/networkd-manager.h
test/test-network/systemd-networkd-tests.py