summaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-09-28 14:15:43 +0200
committerThomas Haller <thaller@redhat.com>2017-10-06 11:13:43 +0200
commit4804fb778a212f7e8a43e0ee48123003c5482014 (patch)
treec41981a4d8160c566b1ad0fcf0773d1095801d32 /src/vpn
parent7837afe87f0f269c0cc4de1c9c217529d760e83b (diff)
downloadNetworkManager-4804fb778a212f7e8a43e0ee48123003c5482014.tar.gz
device: remove wrappers for nm_device_get_ip_route_metric()
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/nm-vpn-connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpn/nm-vpn-connection.c b/src/vpn/nm-vpn-connection.c
index acb8228d74..e3b3081df7 100644
--- a/src/vpn/nm-vpn-connection.c
+++ b/src/vpn/nm-vpn-connection.c
@@ -751,7 +751,7 @@ add_ip4_vpn_gateway_route (NMIP4Config *config,
if (!has_parent_gw)
return;
- route_metric = nm_device_get_ip4_route_metric (parent_device);
+ route_metric = nm_device_get_ip_route_metric (parent_device, AF_INET);
memset (&route, 0, sizeof (route));
route.ifindex = ifindex;
@@ -824,7 +824,7 @@ add_ip6_vpn_gateway_route (NMIP6Config *config,
if (!has_parent_gw)
return;
- route_metric = nm_device_get_ip6_route_metric (parent_device);
+ route_metric = nm_device_get_ip_route_metric (parent_device, AF_INET6);
memset (&route, 0, sizeof (route));
route.ifindex = ifindex;