summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-01-23 20:36:12 +0100
committerLubomir Rintel <lkundrak@v3.sk>2015-02-27 16:48:28 +0100
commit72cefd5162e53b071dd781c3ac54cfd4034a0328 (patch)
tree69b19d292ade05d047cb8039aac0934887ee34d1
parent4d097829f0e70200c4f4589dfacd1f6de6a37e1d (diff)
downloadNetworkManager-72cefd5162e53b071dd781c3ac54cfd4034a0328.tar.gz
fake-platform: normalize ipv6 route metric before deletion
-rw-r--r--src/platform/nm-fake-platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/nm-fake-platform.c b/src/platform/nm-fake-platform.c
index e68fd372d5..b2878e3b0c 100644
--- a/src/platform/nm-fake-platform.c
+++ b/src/platform/nm-fake-platform.c
@@ -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;