diff options
author | Thomas Haller <thaller@redhat.com> | 2017-10-09 10:58:47 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-12 10:38:19 +0200 |
commit | 032b4e4371abf7c8b353d4c03a9b4b5c316532f4 (patch) | |
tree | 6b23862a18725c5dba3ae7d4d8b6c6feb6ef3ef4 /src/nm-iface-helper.c | |
parent | 0a972a46671aca0cbae29f88dc033172ec76c72a (diff) | |
download | NetworkManager-032b4e4371abf7c8b353d4c03a9b4b5c316532f4.tar.gz |
core: use router preference for IPv6 routes
For routes and the default-route from NDisc, set the router preference
RTA_PREF.
Also, previously, we would only configure one IPv6 default-route. That by itself
was not really a problem, as long as NetworkManager would always make sure that
it configured the route to the ~best~ router.
Actually, NM should have done that already. It keeps the list of gateways
sorted, and prefers them according to their preference. But maybe
it didn't, so we have bug rh#1445417 (??).
Change that by configuring a default-route for all gateways, with
appropriate router prefrence. In case, kernel doesn't support RTA_PREF
yet, only configure all routes that share the same maxiumum preference.
https://bugzilla.redhat.com/show_bug.cgi?id=1445417
Diffstat (limited to 'src/nm-iface-helper.c')
-rw-r--r-- | src/nm-iface-helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c index 8f6331e3c9..38a8a8afef 100644 --- a/src/nm-iface-helper.c +++ b/src/nm-iface-helper.c @@ -208,7 +208,9 @@ ndisc_config_changed (NMNDisc *ndisc, const NMNDiscData *rdata, guint changed_in rdata->routes, rdata->routes_n, RT_TABLE_MAIN, - global_opt.priority_v6); + global_opt.priority_v6, + nm_platform_check_kernel_support (NM_PLATFORM_GET, + NM_PLATFORM_KERNEL_SUPPORT_RTA_PREF)); } if (changed & NM_NDISC_CONFIG_DHCP_LEVEL) { |