diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2021-01-25 10:09:27 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-01-27 11:35:35 +0000 |
commit | 68d2753569592e424e7584e2f921f68d1b3d2088 (patch) | |
tree | 49926c81a0ef25cecce425e7badfcaa014eee2d9 /src/plugins/ikev2/ikev2_priv.h | |
parent | 1b9d2c2c9d21b5a29527a738601055f67165c7ca (diff) |
ikev2: add per SA stats
Type: feature
Change-Id: Ic502d806410ea3c8f3f1eac70b694114ccb053bf
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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/ikev2/ikev2_priv.h b/src/plugins/ikev2/ikev2_priv.h index fa302dcf21a..799c64372ac 100644 --- a/src/plugins/ikev2/ikev2_priv.h +++ b/src/plugins/ikev2/ikev2_priv.h @@ -367,6 +367,16 @@ typedef enum typedef struct { + u16 n_keepalives; + u16 n_rekey_req; + u16 n_sa_auth_req; + u16 n_sa_init_req; + u16 n_init_retransmit; + u16 n_retransmit; +} ikev2_stats_t; + +typedef struct +{ ikev2_state_t state; u8 unsupported_cp; u8 initial_contact; @@ -446,6 +456,8 @@ typedef struct /* is NAT traversal mode */ ikev2_natt_state_t natt_state; u8 keys_generated; + + ikev2_stats_t stats; } ikev2_sa_t; |