mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 01:20:16 +01:00
route-manager: process platform events before syncing routes
Let's ensure we have a fresh platform cache before starting
to sync.
(cherry picked from commit c5c612d711)
This commit is contained in:
parent
74da44e3df
commit
a698b70d0f
1 changed files with 2 additions and 0 deletions
|
|
@ -359,6 +359,8 @@ _vx_route_sync (const VTableIP *vtable, NMRouteManager *self, int ifindex, const
|
|||
const NMPlatformIPXRoute *cur_known_route, *cur_plat_route;
|
||||
NMPlatformIPXRoute *cur_ipx_route;
|
||||
|
||||
nm_platform_process_events (priv->platform);
|
||||
|
||||
ipx_routes = vtable->vt->is_ip4 ? &priv->ip4_routes : &priv->ip6_routes;
|
||||
plat_routes = vtable->vt->route_get_all (priv->platform, ifindex, NM_PLATFORM_GET_ROUTE_FLAGS_WITH_NON_DEFAULT);
|
||||
plat_routes_idx = _route_index_create (vtable, plat_routes);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue