diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2014-10-09 18:51:11 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-20 14:32:38 +0200 |
commit | 810dc260ef5697560e49fd92a2f6cb166d7babf4 (patch) | |
tree | 9c0177a563757a7ae6d74a8e239af98ee130b97d /src/devices/nm-device-vlan.c | |
parent | 33866e4030bce9bec081474c33e37854efb58ba7 (diff) | |
download | NetworkManager-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.c | 2 |
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); } } |