mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 18:50:18 +01:00
core: only expose "type unicast" routes on D-Bus
Currently, we would not mark non-unicast routes with their type, so they would wrongly appear as unicast routes in the D-Bus API. That is wrong. For now, just hide them. Fixes:5d0d13f570('platform: add support for local routes') (cherry picked from commit5035687a7b)
This commit is contained in:
parent
4e6fcb4a71
commit
cf3cff4f12
2 changed files with 6 additions and 0 deletions
|
|
@ -3227,6 +3227,9 @@ out_addresses_cached:
|
|||
|
||||
nm_assert (_route_valid (route));
|
||||
|
||||
if (route->type_coerced != nm_platform_route_type_coerce (RTN_UNICAST))
|
||||
continue;
|
||||
|
||||
g_variant_builder_init (&route_builder, G_VARIANT_TYPE ("a{sv}"));
|
||||
g_variant_builder_add (&route_builder, "{sv}",
|
||||
"dest",
|
||||
|
|
|
|||
|
|
@ -2682,6 +2682,9 @@ out_addresses_cached:
|
|||
|
||||
nm_assert (_route_valid (route));
|
||||
|
||||
if (route->type_coerced != nm_platform_route_type_coerce (RTN_UNICAST))
|
||||
continue;
|
||||
|
||||
g_variant_builder_init (&route_builder, G_VARIANT_TYPE ("a{sv}"));
|
||||
g_variant_builder_add (&route_builder, "{sv}",
|
||||
"dest",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue