diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-13 16:45:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-09-15 17:28:48 +0200 |
commit | 2cc1813340c63dbbdc183931a700bb38740419e1 (patch) | |
tree | 0b626fa7f1554e3e075c9ce7cc933ee397105846 /src/nm-iface-helper.c | |
parent | 1cb4832f0933dda36556c36b2b7b2306cf76139a (diff) | |
download | NetworkManager-2cc1813340c63dbbdc183931a700bb38740419e1.tar.gz |
core: workaround configuring IPv6 routes with "src" (RTA_PREFSRC)
Kernel does not allow to add IPv6 routes with "src", as long as the
corresponding address is still tentative (related bug rh#1457196).
The workaround for this is cumbersome. First, when we fail to add such a
route with "pref_src", we guess that it happend due to this issue. In
that case, nm_ip6_config_commit() returns the list of routes that could
not be added for the moment (but hopefully can be added later).
We track this list in NMDevice, and keep trying to merge the routes
back into ip6_config. In order to not try indefinitely, keep track of a
timestamp when we tried to add this route for the first time.
Another uglyness is that pending tentative routes don't explicitly block
activation. In practice they may do, because for these routes we also have
an IPv6 address that is still doing DAD, so the IP configuration is
still pending due to that.
https://bugzilla.redhat.com/show_bug.cgi?id=1452684
Diffstat (limited to 'src/nm-iface-helper.c')
-rw-r--r-- | src/nm-iface-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c index ae76ee94ef..43c2ae478b 100644 --- a/src/nm-iface-helper.c +++ b/src/nm-iface-helper.c @@ -226,7 +226,7 @@ ndisc_config_changed (NMNDisc *ndisc, const NMNDiscData *rdata, guint changed_in } nm_ip6_config_merge (existing, ndisc_config, NM_IP_CONFIG_MERGE_DEFAULT); - if (!nm_ip6_config_commit (existing, NM_PLATFORM_GET)) + if (!nm_ip6_config_commit (existing, NM_PLATFORM_GET, NULL)) _LOGW (LOGD_IP6, "failed to apply IPv6 config"); } |