mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 09:35:07 -05:00
cmdmon: specify name instead of address in add request
Modify the request for adding a source to provide the name of the source instead of its address (resolved in chronyc) in order to enable chronyd to replace the source, support an "add pool" command, and enable an NTS client to verify the server's certificate. The name resolving does not block the response. Success is indicated even if the name cannot be resolved, or a source with the same address is already present. To prevent unresolvable names from getting to chronyd, chronyc does not send the request if it could not resolve the name itself (assuming they are both running on the same host using the same resolver).
This commit is contained in:
3
candm.h
3
candm.h
@@ -263,7 +263,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
uint32_t type;
|
||||
IPAddr ip_addr;
|
||||
int8_t name[256];
|
||||
uint32_t port;
|
||||
int32_t minpoll;
|
||||
int32_t maxpoll;
|
||||
@@ -503,6 +503,7 @@ typedef struct {
|
||||
#define STT_INVALIDAF 17
|
||||
#define STT_BADPKTVERSION 18
|
||||
#define STT_BADPKTLENGTH 19
|
||||
#define STT_INVALIDNAME 21
|
||||
|
||||
typedef struct {
|
||||
int32_t EOR;
|
||||
|
||||
Reference in New Issue
Block a user