mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 00:55:06 -05:00
cmdmon: define new types for CLIENT_ACCESSES_BY_INDEX command
There was an incompatible change in the client access report. To avoid bumping the protocol version drop support for the original request/reply types and define new CLIENT_ACCESSES_BY_INDEX2 types as a newer version of the command.
This commit is contained in:
4
client.c
4
client.c
@@ -2098,11 +2098,11 @@ process_cmd_clients(char *line)
|
||||
"===============================================================================\n");
|
||||
|
||||
while (1) {
|
||||
request.command = htons(REQ_CLIENT_ACCESSES_BY_INDEX);
|
||||
request.command = htons(REQ_CLIENT_ACCESSES_BY_INDEX2);
|
||||
request.data.client_accesses_by_index.first_index = htonl(next_index);
|
||||
request.data.client_accesses_by_index.n_clients = htonl(MAX_CLIENT_ACCESSES);
|
||||
|
||||
if (!request_reply(&request, &reply, RPY_CLIENT_ACCESSES_BY_INDEX, 0))
|
||||
if (!request_reply(&request, &reply, RPY_CLIENT_ACCESSES_BY_INDEX2, 0))
|
||||
return 0;
|
||||
|
||||
n_clients = ntohl(reply.data.client_accesses_by_index.n_clients);
|
||||
|
||||
Reference in New Issue
Block a user