mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 14:20:16 +01:00
fake-platform: normalize ipv6 route metric before deletion
This commit is contained in:
parent
4d097829f0
commit
72cefd5162
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue