aboutsummaryrefslogtreecommitdiffstats
path: root/extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c')
-rw-r--r--extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c b/extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c
index 652de6552f7..38d39512b31 100644
--- a/extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c
+++ b/extras/strongswan/vpp_sswan/kernel_vpp_ipsec.c
@@ -1598,8 +1598,10 @@ METHOD (kernel_ipsec_t, add_sa, status_t, private_kernel_vpp_ipsec_t *this,
}
if (data->encap)
{
- DBG1 (DBG_KNL, "UDP encap!!!!!!!!!!!!!!!!!!!!");
+ DBG1 (DBG_KNL, "UDP encap");
flags |= IPSEC_API_SAD_FLAG_UDP_ENCAP;
+ mp->entry.udp_src_port = htons (natt_port);
+ mp->entry.udp_dst_port = htons (natt_port);
}
mp->entry.flags = htonl (flags);