summaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2_priv.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-09-28 18:59:53 +0200
committerDamjan Marion <dmarion@me.com>2021-10-08 11:18:23 +0000
commit3f59c639609be9768f592111e5f8a8a2c23db3ac (patch)
tree9373e62e8e41377c548a2438b099c1934d7887c9 /src/plugins/ikev2/ikev2_priv.h
parentfa6e7aacfcbb196251029560113fc4e9b2852518 (diff)
ikev2: lazy initialization
- do not initialize resources if ikev2 is not used. - process IKE packets only if we have profile(s) configured Type: improvement Change-Id: I57c95a888532eafd70989096c0555ebb1d7bef25 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2_priv.h')
-rw-r--r--src/plugins/ikev2/ikev2_priv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/ikev2/ikev2_priv.h b/src/plugins/ikev2/ikev2_priv.h
index 4c56b980f1c..0a6036891b2 100644
--- a/src/plugins/ikev2/ikev2_priv.h
+++ b/src/plugins/ikev2/ikev2_priv.h
@@ -531,6 +531,16 @@ typedef struct
/* pointer to name resolver function in dns plugin */
int (*dns_resolve_name) ();
+
+ /* flag indicating whether lazy init is done or not */
+ int lazy_init_done;
+
+ /* refcount for IKEv2 udp ports and IPsec NATT punt registration */
+ int bind_refcount;
+
+ /* punt handle for IPsec NATT IPSEC_PUNT_IP4_SPI_UDP_0 reason */
+ vlib_punt_hdl_t punt_hdl;
+
} ikev2_main_t;
extern ikev2_main_t ikev2_main;