summaryrefslogtreecommitdiffstats
path: root/src/plugins/ikev2/ikev2_priv.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-03-31 05:59:41 +0000
committerNeale Ranns <nranns@cisco.com>2020-04-07 12:29:09 +0000
commit59fea5a6a3fafe0a5a0d2f543db53af790013e3a (patch)
tree270cef072f0fcb11bb29c02a4119bed43a6f157e /src/plugins/ikev2/ikev2_priv.h
parent483a3d819abf13a95b5ded65c3efa360e9b4fdf0 (diff)
ikev2: make liveness params configurable
Introduce new cli for setting liveness check period and max retries for a peer to consider its partner dead. ikev2 set liveness <period-in-seconds> <max-retires> Type: improvement Change-Id: Iadae1de245d34fe3ee85e09b570f9df8c401772b Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ikev2/ikev2_priv.h')
-rw-r--r--src/plugins/ikev2/ikev2_priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/ikev2/ikev2_priv.h b/src/plugins/ikev2/ikev2_priv.h
index c5a632c12a5..a344e716a89 100644
--- a/src/plugins/ikev2/ikev2_priv.h
+++ b/src/plugins/ikev2/ikev2_priv.h
@@ -490,6 +490,12 @@ typedef struct
/* custom ipsec-over-udp ports managed by ike */
uword *udp_ports;
+
+ /* how often a liveness check will be performed */
+ u32 liveness_period;
+
+ /* max number of retries before considering peer dead */
+ u32 liveness_max_retries;
} ikev2_main_t;
extern ikev2_main_t ikev2_main;