diff options
author | Thomas Haller <thaller@redhat.com> | 2019-04-05 12:29:40 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-04-05 12:32:02 +0200 |
commit | 2eb77d89ae84527e696e6277caabcdec16d80a71 (patch) | |
tree | 3a30cae33e1b9477a8f7558225bc40601d1862a3 | |
parent | e4e9e41ef63ad54a5816b1cd9737918eb9ff0a57 (diff) | |
download | NetworkManager-th/infiniband-max-mtu.tar.gz |
libnm: fix range of MTU property to uint32 for ip-tunnelth/infiniband-max-mtu
This should make no difference, because commonly guint32
is a typedef for guint/unsigned and has the same range.
-rw-r--r-- | libnm-core/nm-setting-ip-tunnel.c | 4 |
1 files 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 | |