diff options
author | Thomas Haller <thaller@redhat.com> | 2019-04-05 12:31:49 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-04-05 16:27:17 +0200 |
commit | 47412936c2a1149d950825f979f75c7ad296906b (patch) | |
tree | e33022ece13a0df3553c8e2074fe84f0fa279ee7 /src/devices/wwan/nm-modem.c | |
parent | b25cf61a3367b6bfa1757ce59095f95ab10ede89 (diff) | |
download | NetworkManager-47412936c2a1149d950825f979f75c7ad296906b.tar.gz |
device: limit maximum MTU for connection default of "infiniband.mtu"
Connection defaults should correspond in range to the per-profile values.
"infiniband.mtu" is required to be not larger than 65520, so we also
need to honor that when parsing the connection default.
Diffstat (limited to 'src/devices/wwan/nm-modem.c')
-rw-r--r-- | src/devices/wwan/nm-modem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wwan/nm-modem.c b/src/devices/wwan/nm-modem.c index 2217f2a2df..1779422956 100644 --- a/src/devices/wwan/nm-modem.c +++ b/src/devices/wwan/nm-modem.c @@ -885,7 +885,7 @@ nm_modem_get_configured_mtu (NMDevice *self, NMDeviceMtuSource *out_source) } property_name = NM_IS_SETTING_GSM (setting) ? "gsm.mtu" : "cdma.mtu"; - mtu_default = nm_device_get_configured_mtu_from_connection_default (self, property_name); + mtu_default = nm_device_get_configured_mtu_from_connection_default (self, property_name, G_MAXUINT32); if (mtu_default >= 0) { *out_source = NM_DEVICE_MTU_SOURCE_CONNECTION; return (guint32) mtu_default; |