main: store additional statistics globally

That is, store:
 * number of timed out sessions
 * number of timed out due being idle sessions
 * number of errored sessions
 * total number of session handled (closed)
 * total number of kbytes sent
 * total number of kbytes received
 * minimum MTU seen
 * maximum MTU seen
 * total authentication failures
 * average/max authentication time (in secs)
 * average/max session time (in minutes)

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2017-03-11 22:03:35 +01:00
parent 81d2a86eff
commit e9cf88f8c2
8 changed files with 150 additions and 21 deletions

View File

@@ -40,6 +40,10 @@ typedef struct sec_mod_st {
int cmd_fd_sync;
tls_sess_db_st tls_db;
uint64_t auth_failures; /* auth failures since the last update (SECM_CLI_STATS) we sent to main */
uint32_t max_auth_time; /* the maximum time spent in (sucessful) authentication */
uint32_t avg_auth_time; /* the average time spent in (sucessful) authentication */
uint32_t total_authentications; /* successful authentications: to calculate the average above */
struct config_mod_st *config_module;
} sec_mod_st;