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.
This commit is contained in:
Dan Winship 2014-11-18 08:30:16 -05:00
parent 3c1187adb9
commit fac424b030
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);