mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 05:10:09 +01:00
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:
parent
3c1187adb9
commit
fac424b030
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue