From c1ee10c4d9231f082dca11a61c692e1276826aa1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 20 Oct 2019 11:14:52 +0200 Subject: [PATCH] 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. --- libnm/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 69ed20e9c..51139bfce 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -797,7 +797,7 @@ nm_device_class_init (NMDeviceClass *device_class) **/ obj_properties[PROP_MTU] = g_param_spec_uint (NM_DEVICE_MTU, "", "", - 0, G_MAXUINT32, 1500, + 0, G_MAXUINT32, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);