mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
cmdmon: add reserved fields to local command
Add two reserved fields initialized to zero to the new REQ_LOCAL3 command to allow adding more options (e.g. delay in activation) without changing the command number again.
This commit is contained in:
1
candm.h
1
candm.h
@@ -239,6 +239,7 @@ typedef struct {
|
||||
Float distance;
|
||||
int32_t orphan;
|
||||
Float activate;
|
||||
uint32_t reserved[2];
|
||||
int32_t EOR;
|
||||
} REQ_Local;
|
||||
|
||||
|
||||
1
client.c
1
client.c
@@ -772,6 +772,7 @@ process_cmd_local(CMD_Request *msg, char *line)
|
||||
msg->data.local.distance = UTI_FloatHostToNetwork(distance);
|
||||
msg->data.local.orphan = htonl(orphan);
|
||||
msg->data.local.activate = UTI_FloatHostToNetwork(activate);
|
||||
memset(msg->data.local.reserved, 0, sizeof (msg->data.local.reserved));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user