cmdmon: add reserved fields to ntpdata reply

This might be useful if ntpdata is changed to not require authorization
and new fields need to be added without breaking compatibility.
This commit is contained in:
Miroslav Lichvar
2016-12-12 12:50:48 +01:00
parent 1b1384ccaa
commit fac1093ebf
2 changed files with 2 additions and 0 deletions

View File

@@ -1232,6 +1232,7 @@ handle_ntp_data(CMD_Request *rx_message, CMD_Reply *tx_message)
tx_message->data.ntp_data.total_tx_count = htonl(report.total_tx_count);
tx_message->data.ntp_data.total_rx_count = htonl(report.total_rx_count);
tx_message->data.ntp_data.total_valid_count = htonl(report.total_valid_count);
memset(tx_message->data.ntp_data.reserved, 0xff, sizeof (tx_message->data.ntp_data.reserved));
}
/* ================================================== */