mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 04:40:32 +01:00
route-manager: always flush IPv6 routes during nm_route_manager_route_flush()
This commit is contained in:
parent
0a6cca9450
commit
9b2a34c978
1 changed files with 5 additions and 2 deletions
|
|
@ -941,8 +941,11 @@ nm_route_manager_ip6_route_sync (NMRouteManager *self, int ifindex, const GArray
|
|||
gboolean
|
||||
nm_route_manager_route_flush (NMRouteManager *self, int ifindex)
|
||||
{
|
||||
return nm_route_manager_ip4_route_sync (self, ifindex, NULL, FALSE, TRUE)
|
||||
&& nm_route_manager_ip6_route_sync (self, ifindex, NULL, FALSE, TRUE);
|
||||
bool success = TRUE;
|
||||
|
||||
success &= (bool) nm_route_manager_ip4_route_sync (self, ifindex, NULL, FALSE, TRUE);
|
||||
success &= (bool) nm_route_manager_ip6_route_sync (self, ifindex, NULL, FALSE, TRUE);
|
||||
return success;
|
||||
}
|
||||
|
||||
/*********************************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue