summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-vlan.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2014-10-09 18:51:11 +0200
committerThomas Haller <thaller@redhat.com>2014-10-20 14:32:38 +0200
commit810dc260ef5697560e49fd92a2f6cb166d7babf4 (patch)
tree9c0177a563757a7ae6d74a8e239af98ee130b97d /src/devices/nm-device-vlan.c
parent33866e4030bce9bec081474c33e37854efb58ba7 (diff)
downloadNetworkManager-810dc260ef5697560e49fd92a2f6cb166d7babf4.tar.gz
core: track origin of MTU
Only override MTU if it came from a source of higher priority or is of equal priority but of lower value.
Diffstat (limited to 'src/devices/nm-device-vlan.c')
-rw-r--r--src/devices/nm-device-vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-device-vlan.c b/src/devices/nm-device-vlan.c
index 71013a99c8..8ca39be64b 100644
--- a/src/devices/nm-device-vlan.c
+++ b/src/devices/nm-device-vlan.c
@@ -390,7 +390,7 @@ ip4_config_pre_commit (NMDevice *device, NMIP4Config *config)
if (s_wired) {
mtu = nm_setting_wired_get_mtu (s_wired);
if (mtu)
- nm_ip4_config_set_mtu (config, mtu);
+ nm_ip4_config_set_mtu (config, mtu, NM_IP_CONFIG_SOURCE_USER);
}
}