clientlog: add NTS-KE service

Instead of sharing the NTP rate limiting with NTS-KE, specify a new
service for NTS-KE and use it in the NTS-KE server.

Add ntsratelimit directive for configuration.
This commit is contained in:
Miroslav Lichvar
2020-05-19 14:22:00 +02:00
parent 3a2d33d5a3
commit 6366ebc17e
7 changed files with 38 additions and 3 deletions

View File

@@ -44,7 +44,7 @@
#include "util.h"
#include "logging.h"
#define MAX_SERVICES 2
#define MAX_SERVICES 3
typedef struct {
IPAddr ip_addr;
@@ -329,6 +329,10 @@ CLG_Initialise(void)
if (!CNF_GetNTPRateLimit(&interval, &burst, &lrate))
continue;
break;
case CLG_NTSKE:
if (!CNF_GetNtsRateLimit(&interval, &burst, &lrate))
continue;
break;
case CLG_CMDMON:
if (!CNF_GetCommandRateLimit(&interval, &burst, &lrate))
continue;