mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 01:40:16 +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')
This commit is contained in:
parent
e7d2ea95ba
commit
5035687a7b
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