libnm: change default value for NMDevice:mtu property

Default values should preferably be zero and/or a value that indicates
that the property is unknown/unset.

In practice, this property is not unset because it's present
on the D-Bus API.
This commit is contained in:
Thomas Haller
2019-10-20 11:14:52 +02:00
parent b59954e355
commit c1ee10c4d9

View File

@@ -797,7 +797,7 @@ nm_device_class_init (NMDeviceClass *device_class)
**/ **/
obj_properties[PROP_MTU] = obj_properties[PROP_MTU] =
g_param_spec_uint (NM_DEVICE_MTU, "", "", g_param_spec_uint (NM_DEVICE_MTU, "", "",
0, G_MAXUINT32, 1500, 0, G_MAXUINT32, 0,
G_PARAM_READABLE | G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS); G_PARAM_STATIC_STRINGS);