mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:25:07 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user