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-ip6-config.h | |
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-ip6-config.h')
-rw-r--r-- | src/nm-ip6-config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-ip6-config.h b/src/nm-ip6-config.h index c55ee31ea9..2fb8b8a4ad 100644 --- a/src/nm-ip6-config.h +++ b/src/nm-ip6-config.h @@ -219,6 +219,7 @@ void nm_ip6_config_reset_routes_ndisc (NMIP6Config *self, const struct _NMNDiscRoute *routes, guint routes_n, guint32 route_table, - guint32 route_metric); + guint32 route_metric, + gboolean kernel_support_rta_pref); #endif /* __NETWORKMANAGER_IP6_CONFIG_H__ */ |