X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fikev2%2Fikev2.c;h=bdc234a0239e8cd29ca1a1ee0d41a7507405b718;hb=2d822818210f7783244ea6b4343566cf0cd7c9e2;hp=ea99e375ea01afde72441038a2a0a7630012be8b;hpb=529f0e97b6064039c500adce0d54b738954b2ffa;p=vpp.git diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c index ea99e375ea0..bdc234a0239 100644 --- a/src/plugins/ikev2/ikev2.c +++ b/src/plugins/ikev2/ikev2.c @@ -1616,9 +1616,11 @@ ikev2_create_tunnel_interface (vnet_main_t * vnm, } a.flags = IPSEC_SA_FLAG_USE_ANTI_REPLAY; - a.flags |= IPSEC_SA_FLAG_IS_TUNNEL; if (sa->udp_encap) - a.flags |= IPSEC_SA_FLAG_UDP_ENCAP; + { + a.flags |= IPSEC_SA_FLAG_IS_TUNNEL; + a.flags |= IPSEC_SA_FLAG_UDP_ENCAP; + } a.is_rekey = is_rekey; tr = ikev2_sa_get_td_for_type (proposals, IKEV2_TRANSFORM_TYPE_ESN);