route-manager: always flush IPv6 routes during nm_route_manager_route_flush()

This commit is contained in:
Thomas Haller 2015-12-07 14:51:02 +01:00
parent 0a6cca9450
commit 9b2a34c978

View file

@ -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;
}
/*********************************************************************************************/