From fac424b03047f66bc5d5cc27478b5447cc3042b3 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 18 Nov 2014 08:30:16 -0500 Subject: [PATCH] core: fix IP4Config.RouteData and IP6Config.RouteData NMIP4Config/NMIP6Config have their own NMIPRoute->D-Bus conversion code since the code in libnm-core is gdbus-specific. But they were doing it wrong, resulting in clients seeing a next hop of 0.0.0.0/:: for all routes. --- src/nm-ip4-config.c | 2 +- src/nm-ip6-config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c index 08aa20859b..a6856bd2f2 100644 --- a/src/nm-ip4-config.c +++ b/src/nm-ip4-config.c @@ -1831,7 +1831,7 @@ get_property (GObject *object, guint prop_id, val = g_slice_new0 (GValue); g_value_init (val, G_TYPE_STRING); g_value_set_string (val, nm_utils_inet4_ntop (route->gateway, NULL)); - g_hash_table_insert (route_hash, "gateway", val); + g_hash_table_insert (route_hash, "next-hop", val); } val = g_slice_new0 (GValue); diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c index 7a7469014a..6038c190d5 100644 --- a/src/nm-ip6-config.c +++ b/src/nm-ip6-config.c @@ -1726,7 +1726,7 @@ get_property (GObject *object, guint prop_id, val = g_slice_new0 (GValue); g_value_init (val, G_TYPE_STRING); g_value_set_string (val, nm_utils_inet6_ntop (&route->gateway, NULL)); - g_hash_table_insert (route_hash, "gateway", val); + g_hash_table_insert (route_hash, "next-hop", val); } val = g_slice_new0 (GValue);