libnm-core-impl: allow ip6 tunnel flags for ip6gre & ip6gretap

(cherry picked from commit a239317a6b)
This commit is contained in:
Joao Machado 2023-03-11 15:25:09 +00:00 committed by Beniamino Galvani
parent 429f36cd81
commit be8ddf367f

View file

@ -491,7 +491,11 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
}
flags = priv->flags;
if (NM_IN_SET(priv->mode, NM_IP_TUNNEL_MODE_IPIP6, NM_IP_TUNNEL_MODE_IP6IP6))
if (NM_IN_SET(priv->mode,
NM_IP_TUNNEL_MODE_IPIP6,
NM_IP_TUNNEL_MODE_IP6IP6,
NM_IP_TUNNEL_MODE_IP6GRE,
NM_IP_TUNNEL_MODE_IP6GRETAP))
flags &= (guint32) (~_NM_IP_TUNNEL_FLAG_ALL_IP6TNL);
if (flags) {
g_set_error(error,