fake-platform: normalize ipv6 route metric before deletion

This commit is contained in:
Lubomir Rintel 2015-01-23 20:36:12 +01:00
parent 4d097829f0
commit 72cefd5162

View file

@ -1078,6 +1078,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;