summaryrefslogtreecommitdiff
path: root/src/nm-ip4-config.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-06-04 15:57:42 +0200
committerThomas Haller <thaller@redhat.com>2015-07-22 14:14:18 +0200
commit9588c4633a07147875d933556212716779e32a36 (patch)
treee367987b08ffa60bf52d935737e7b693a425724a /src/nm-ip4-config.h
parent1615d8c975b8c2f33fd7ea4e06a2f7bd82e4b244 (diff)
core: detect route-metric when creating nm-generated-assumed connection
When generating a connection to assume it, also record the route-metric. Do that by looking at the metric of the (best) default-route. This is especially important since d51975ed921a5876b76e081b8f3df4e2ca1f1ca9. Now NM would also manage the default-route for assumed connections. So the generated assumed connection would have a route metric based on the device type, which might differ from the external configuration. This caused NM to replace the externally configured default-route. https://bugzilla.gnome.org/show_bug.cgi?id=750405 (cherry picked from commit bc75cd53a8c5ba525016bfddc1644be59a45ed41)
Diffstat (limited to 'src/nm-ip4-config.h')
-rw-r--r--src/nm-ip4-config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-ip4-config.h b/src/nm-ip4-config.h
index 62a309fa08..fb072404f0 100644
--- a/src/nm-ip4-config.h
+++ b/src/nm-ip4-config.h
@@ -81,6 +81,7 @@ void nm_ip4_config_set_never_default (NMIP4Config *config, gboolean never_defaul
gboolean nm_ip4_config_get_never_default (const NMIP4Config *config);
void nm_ip4_config_set_gateway (NMIP4Config *config, guint32 gateway);
guint32 nm_ip4_config_get_gateway (const NMIP4Config *config);
+gint64 nm_ip4_config_get_route_metric (const NMIP4Config *config);
/* Addresses */
void nm_ip4_config_reset_addresses (NMIP4Config *config);