ntp: add offset option

Add offset option to the server/pool/peer directive. It specifies a
correction which will be applied to offsets measured with the NTP
source. It's particularly useful to compensate for a known asymmetry in
network delay or timestamping errors.
This commit is contained in:
Miroslav Lichvar
2016-06-28 15:27:44 +02:00
parent 632cd1a177
commit 6cd558398a
5 changed files with 22 additions and 1 deletions

View File

@@ -1083,6 +1083,8 @@ process_cmd_add_server_or_peer(CMD_Request *msg, char *line)
opt_name = "maxsources";
else if (data.params.min_stratum != SRC_DEFAULT_MINSTRATUM)
opt_name = "minstratum";
else if (data.params.offset != 0.0)
opt_name = "offset";
else if (data.params.poll_target != SRC_DEFAULT_POLLTARGET)
opt_name = "polltarget";
else if (data.params.version != NTP_VERSION)