summaryrefslogtreecommitdiff
path: root/src/nm-ip4-config.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-03-15 09:29:47 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-03-22 12:04:25 +0100
commit80dfb8cdab6238dcf1099d4dea9bb396ff0f5ee9 (patch)
treea09d5e9d10924b7ad179bc60ed25ff482d5a218b /src/nm-ip4-config.c
parentd3b1e08c9abde0448a6304f90e888207e08f55e1 (diff)
downloadNetworkManager-80dfb8cdab6238dcf1099d4dea9bb396ff0f5ee9.tar.gz
core,libnm-core: use same route attribute names of iproute2
Users are probably more familiar with iproute2 route option names than kernel ones. Fixes: 54e58eb96bbfcd26d31ddba2e98ff2c59335a02a
Diffstat (limited to 'src/nm-ip4-config.c')
-rw-r--r--src/nm-ip4-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c
index b3d8ee478d..6226a305ff 100644
--- a/src/nm-ip4-config.c
+++ b/src/nm-ip4-config.c
@@ -435,7 +435,7 @@ merge_route_attributes (NMIPRoute *s_route, NMPlatformIP4Route *r)
GET_ATTR (NM_IP_ROUTE_ATTRIBUTE_LOCK_INITRWND, lock_initrwnd, BOOLEAN, boolean);
GET_ATTR (NM_IP_ROUTE_ATTRIBUTE_LOCK_MTU, lock_mtu, BOOLEAN, boolean);
- if ( (variant = nm_ip_route_get_attribute (s_route, NM_IP_ROUTE_ATTRIBUTE_PREF_SRC))
+ if ( (variant = nm_ip_route_get_attribute (s_route, NM_IP_ROUTE_ATTRIBUTE_SRC))
&& g_variant_is_of_type (variant, G_VARIANT_TYPE_STRING)) {
if (inet_pton (AF_INET, g_variant_get_string (variant, NULL), &addr) == 1)
r->pref_src = addr;