summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/ipsec_if.c
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2019-03-07 01:25:32 -0500
committerKingwel Xie <kingwel.xie@ericsson.com>2019-03-07 01:33:52 -0500
commit00bff193e7e3cc9caba447ce001f57ed215fbddf (patch)
tree599ff1e04a54ba451099dd9435882bce4b602763 /src/vnet/ipsec/ipsec_if.c
parentf940f8a40fc41d66a9ab5ea15c574120c49eb92b (diff)
ipsec: ipsec-if optimizations & bug fixes
1. changed to vlib_buffer_enqueue_to_next 2. error counter fixes; stats added to last_sw_if_index when interface changed 3. udp-encap support Change-Id: I70b0814aa37181fea4d70fa3c96c608adb5afe49 Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_if.c')
-rw-r--r--src/vnet/ipsec/ipsec_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_if.c b/src/vnet/ipsec/ipsec_if.c
index 5150e95d6de..f40e94dbe84 100644
--- a/src/vnet/ipsec/ipsec_if.c
+++ b/src/vnet/ipsec/ipsec_if.c
@@ -19,6 +19,7 @@
#include <vnet/api_errno.h>
#include <vnet/ip/ip.h>
#include <vnet/fib/fib.h>
+#include <vnet/udp/udp.h>
#include <vnet/ipsec/ipsec.h>
#include <vnet/ipsec/esp.h>
@@ -603,6 +604,9 @@ ipsec_tunnel_if_init (vlib_main_t * vm)
im->ipsec_if_pool_index_by_key = hash_create (0, sizeof (uword));
im->ipsec_if_real_dev_by_show_dev = hash_create (0, sizeof (uword));
+ udp_register_dst_port (vm, UDP_DST_PORT_ipsec, ipsec_if_input_node.index,
+ 1);
+
return 0;
}