summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2018-12-05 21:49:35 +1100
committerDaniel Axtens <dja@axtens.net>2019-01-16 12:54:06 +1100
commit6aa5773bfff0a92d64da70426cae833df6f84daf (patch)
treed121a20a7bde9a0ff1763db178bf8c4397022d7f /src/network/networkd-link.h
parent6accfd3139a0ccef9859b742452c04926f52515c (diff)
downloadsystemd-6aa5773bfff0a92d64da70426cae833df6f84daf.tar.gz
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>
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index 00e68fdfaa..e417ea26ef 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -82,6 +82,7 @@ typedef struct Link {
Set *routes_foreign;
bool addresses_configured;
+ bool addresses_ready;
sd_dhcp_client *dhcp_client;
sd_dhcp_lease *dhcp_lease;