Sniffer Statistics

Added more of the statistics.
This commit is contained in:
John Safranek
2019-05-24 16:21:08 -07:00
parent 2ee7d05dcc
commit c600f7659a
3 changed files with 25 additions and 8 deletions

View File

@@ -89,6 +89,14 @@ static void FreeAll(void)
static void sig_handler(const int sig)
{
SSLStats sslStats;
ssl_ReadStatistics(&sslStats);
printf("SSL Stats (sslStandardConns):%u\n", sslStats.sslStandardConns);
printf("SSL Stats (sslClientAuthConns):%u\n", sslStats.sslClientAuthConns);
printf("SSL Stats (sslResumedConns):%u\n", sslStats.sslResumedConns);
printf("SSL Stats (sslResumeMisses):%u\n", sslStats.sslResumeMisses);
printf("SSL Stats (sslAlerts):%u\n", sslStats.sslAlerts);
printf("SIGINT handled = %d.\n", sig);
FreeAll();
if (sig)