clientlog: count RX and TX timestamps for each source

Count served timestamps in all combinations of RX/TX and
daemon/kernel/hardware. Repurpose CLG_LogAuthNtpRequest() to update all
NTP-specific stats in one call per accepted request and response.
This commit is contained in:
Miroslav Lichvar
2023-03-16 16:56:28 +01:00
parent a0cf7f7f12
commit 2f961ab36a
4 changed files with 27 additions and 5 deletions

View File

@@ -120,6 +120,12 @@ typedef struct {
uint32_t ntp_interleaved_hits;
uint32_t ntp_timestamps;
uint32_t ntp_span_seconds;
uint32_t ntp_daemon_rx_timestamps;
uint32_t ntp_daemon_tx_timestamps;
uint32_t ntp_kernel_rx_timestamps;
uint32_t ntp_kernel_tx_timestamps;
uint32_t ntp_hw_rx_timestamps;
uint32_t ntp_hw_tx_timestamps;
} RPT_ServerStatsReport;
typedef struct {