fake-platform: normalize ipv6 route metric before deletion

(cherry picked from commit 72cefd5162)
This commit is contained in:
Lubomir Rintel 2015-01-23 20:36:12 +01:00 committed by Thomas Haller
parent 63611cb46f
commit 0916861c5c

View file

@ -1087,6 +1087,8 @@ ip6_route_delete (NMPlatform *platform, int ifindex, struct in6_addr network, in
NMFakePlatformPrivate *priv = NM_FAKE_PLATFORM_GET_PRIVATE (platform);
int i;
metric = nm_utils_ip6_route_metric_normalize (metric);
for (i = 0; i < priv->ip6_routes->len; i++) {
NMPlatformIP6Route *route = &g_array_index (priv->ip6_routes, NMPlatformIP6Route, i);
NMPlatformIP6Route deleted_route;