forked from wolfSSL/wolfssl
Sniffer Statistics
1. Moved sslKeyFails. 2. Added sslEphemeralMisses, sslEncryptedConns, sslDecodeFails. 3. Removed the Rehandshake stats as the sniffer does not support rehandshaking. 4. Removed two of the per second stats as they seemed redundant. 5. Added a function to atomically read and reset the sniffer statistics.
This commit is contained in:
@@ -97,16 +97,10 @@ static void DumpStats(void)
|
||||
|
||||
printf("SSL Stats (sslStandardConns):%u\n",
|
||||
sslStats.sslStandardConns);
|
||||
printf("SSL Stats (sslRehandshakeConns):%u\n",
|
||||
sslStats.sslRehandshakeConns);
|
||||
printf("SSL Stats (sslClientAuthConns):%u\n",
|
||||
sslStats.sslClientAuthConns);
|
||||
printf("SSL Stats (sslResumedConns):%u\n",
|
||||
sslStats.sslResumedConns);
|
||||
printf("SSL Stats (sslResumedRehandshakeConns):%u\n",
|
||||
sslStats.sslResumedRehandshakeConns);
|
||||
printf("SSL Stats (sslClientAuthRehandshakeConns):%u\n",
|
||||
sslStats.sslClientAuthRehandshakeConns);
|
||||
printf("SSL Stats (sslEphemeralMisses):%u\n",
|
||||
sslStats.sslEphemeralMisses);
|
||||
printf("SSL Stats (sslResumeMisses):%u\n",
|
||||
@@ -129,14 +123,10 @@ static void DumpStats(void)
|
||||
sslStats.sslEncryptedPackets);
|
||||
printf("SSL Stats (sslDecryptedPackets):%u\n",
|
||||
sslStats.sslDecryptedPackets);
|
||||
printf("SSL Stats (sslEncryptedConnsPerSecond):%u\n",
|
||||
sslStats.sslEncryptedConnsPerSecond);
|
||||
printf("SSL Stats (sslKeyMatches):%u\n",
|
||||
sslStats.sslKeyMatches);
|
||||
printf("SSL Stats (sslActiveEncryptedConnsPerSecond):%u\n",
|
||||
sslStats.sslActiveEncryptedConnsPerSecond);
|
||||
printf("SSL Stats (sslActiveFlowsPerSecond):%u\n",
|
||||
sslStats.sslActiveFlowsPerSecond);
|
||||
printf("SSL Stats (sslEncryptedConns):%u\n",
|
||||
sslStats.sslEncryptedConns);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user