clientlog: count authenticated NTP requests

This commit is contained in:
Miroslav Lichvar
2020-05-20 10:49:45 +02:00
parent 6366ebc17e
commit f8df4789b1
3 changed files with 12 additions and 0 deletions

View File

@@ -127,6 +127,7 @@ static int active;
/* Global statistics */
static uint32_t total_hits[MAX_SERVICES];
static uint32_t total_drops[MAX_SERVICES];
static uint32_t total_ntp_auth_hits;
static uint32_t total_record_drops;
#define NSEC_PER_SEC 1000000000U
@@ -585,6 +586,14 @@ CLG_LimitServiceRate(CLG_Service service, int index)
/* ================================================== */
void
CLG_LogAuthNtpRequest(void)
{
total_ntp_auth_hits++;
}
/* ================================================== */
void CLG_GetNtpTimestamps(int index, NTP_int64 **rx_ts, NTP_int64 **tx_ts)
{
Record *record;