From 40732115956fb13bbb48cd2ebd2fbf6d1b868b0a Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Tue, 24 Jan 2023 14:56:47 +0100 Subject: [PATCH] Revert "l3cfg: do not add dependent routes for non-default routes" We must trust l3cfg when generating dependent onlink routes for all kind of routes not default routes only. This was done by "nm_platform_ip_route_sync()" so there is not change in behaviour at all. "nm_platform_ip_route_sync()" could be needed for other situation where l3cfg cannot add the dependent onlink routes, so we are not removing that logic. This reverts commit 6b4123db1ce7aff16254976f7bc558b2fe4a9b69. (cherry picked from commit 9c492c6fc40e7224073811f34ab22a5ba11caeef) --- src/core/nm-l3-config-data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/nm-l3-config-data.c b/src/core/nm-l3-config-data.c index 53896839f7..d7ffe126d3 100644 --- a/src/core/nm-l3-config-data.c +++ b/src/core/nm-l3-config-data.c @@ -2569,8 +2569,7 @@ nm_l3_config_data_add_dependent_onlink_routes(NML3ConfigData *self, int addr_fam if (nm_ip_addr_is_null(addr_family, p_gateway)) continue; - if (!NM_PLATFORM_IP_ROUTE_IS_DEFAULT(route_src) - || _data_get_direct_route_for_host( + if (_data_get_direct_route_for_host( self, addr_family, p_gateway,