mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user