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

@@ -47,6 +47,7 @@ typedef struct {
double max_delay;
double max_delay_ratio;
double max_delay_dev_ratio;
double offset;
} SourceParameters;
#define SRC_DEFAULT_PORT 123