From c422fc06b086b75ef9d1d0098e6a805133f87e49 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 5 Apr 2019 12:29:40 +0200 Subject: [PATCH] libnm: fix range of MTU property to uint32 for ip-tunnel This should make no difference, because commonly guint32 is a typedef for guint/unsigned and has the same range. --- libnm-core/nm-setting-ip-tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnm-core/nm-setting-ip-tunnel.c b/libnm-core/nm-setting-ip-tunnel.c index 9fdb5481a9..42c44c1cd1 100644 --- a/libnm-core/nm-setting-ip-tunnel.c +++ b/libnm-core/nm-setting-ip-tunnel.c @@ -60,7 +60,7 @@ typedef struct { char *output_key; guint encapsulation_limit; guint flow_label; - guint mtu; + guint32 mtu; guint32 flags; } NMSettingIPTunnelPrivate; @@ -819,7 +819,7 @@ nm_setting_ip_tunnel_class_init (NMSettingIPTunnelClass *klass) **/ obj_properties[PROP_MTU] = g_param_spec_uint (NM_SETTING_IP_TUNNEL_MTU, "", "", - 0, G_MAXUINT, 0, + 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_FUZZY_IGNORE |