]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
Install routes after addresses are ready
authorDaniel Axtens <dja@axtens.net>
Wed, 5 Dec 2018 10:49:35 +0000 (21:49 +1100)
committerDaniel Axtens <dja@axtens.net>
Wed, 16 Jan 2019 01:54:06 +0000 (12:54 +1100)
commit6aa5773bfff0a92d64da70426cae833df6f84daf
treed121a20a7bde9a0ff1763db178bf8c4397022d7f
parent6accfd3139a0ccef9859b742452c04926f52515c
Install routes after addresses are ready

If an IPv6 route is added with a source address that is still
tentative, the kernel will refuse to install it.

Previously, once we sent the messages to the kernel to add the
addresses, we would immediately proceed to add the routes. The
addresses would usually still be tentative at this point, so
adding static IPv6 routes was broken - see issue #5882.

Now, only begin to configure routes once the addresses are ready,
by restructuring the state machine, and tracking when addresses are
ready, not just added.

Fixes: #5882
Signed-off-by: Daniel Axtens <dja@axtens.net>
src/network/networkd-link.c
src/network/networkd-link.h