aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-03-17 15:26:06 +0000
committerDamjan Marion <dmarion@me.com>2020-03-21 12:08:29 +0000
commit2d822818210f7783244ea6b4343566cf0cd7c9e2 (patch)
treefbc8727865bb074723665662b3c0b3457e4763f4 /src/plugins/ikev2
parent529f0e97b6064039c500adce0d54b738954b2ffa (diff)
ikev2: fix l2 interface
Type: fix Change-Id: Ic6457da31846721e334f144f15d404575eeb73e5 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2')
-rw-r--r--src/plugins/ikev2/ikev2.c6
1 files changed, 4 insertions, 2 deletions
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);