Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ikev2: make liveness params configurable
[vpp.git]
/
src
/
plugins
/
ikev2
/
ikev2_priv.h
diff --git
a/src/plugins/ikev2/ikev2_priv.h
b/src/plugins/ikev2/ikev2_priv.h
index
5afd065
..
a344e71
100644
(file)
--- a/
src/plugins/ikev2/ikev2_priv.h
+++ b/
src/plugins/ikev2/ikev2_priv.h
@@
-358,8
+358,10
@@
typedef struct
u64 lifetime_maxdata;
u32 lifetime_jitter;
u32 handover;
u64 lifetime_maxdata;
u32 lifetime_jitter;
u32 handover;
+ u16 dst_port;
u32 tun_itf;
u32 tun_itf;
+ u8 udp_encap;
} ikev2_profile_t;
typedef struct
} ikev2_profile_t;
typedef struct
@@
-422,13
+424,26
@@
typedef struct
u32 profile_index;
u8 is_tun_itf_set;
u32 tun_itf;
u32 profile_index;
u8 is_tun_itf_set;
u32 tun_itf;
+ u8 udp_encap;
+ u16 dst_port;
+
+ f64 old_id_expiration;
+ u32 current_remote_id_mask;
+ u32 old_remote_id;
+ u8 old_remote_id_present;
+ u8 init_response_received;
ikev2_child_sa_t *childs;
ikev2_child_sa_t *childs;
+
+ u8 liveness_retries;
+ f64 liveness_period_check;
} ikev2_sa_t;
typedef struct
{
} ikev2_sa_t;
typedef struct
{
+ CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
+
/* pool of IKEv2 Security Associations */
ikev2_sa_t *sas;
/* pool of IKEv2 Security Associations */
ikev2_sa_t *sas;
@@
-472,6
+487,15
@@
typedef struct
/* logging level */
ikev2_log_level_t log_level;
/* logging level */
ikev2_log_level_t log_level;
+
+ /* 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;
} ikev2_main_t;
extern ikev2_main_t ikev2_main;