ntp: add client support for experimental extension field

Add "extfield F323" option to include the new extension field in
requests. If the server responds with this field, use the root
delay/dispersion and monotonic timestamp. Accumulate changes in the
offset between the monotonic and real-time receive timestamps and use
it for the correction of previous offsets in sourcestats. In the
interleaved mode, cancel out the latest change in the offset in
timestamps of the previous request and response, which were captured
before the change actually happened.
This commit is contained in:
Miroslav Lichvar
2021-11-15 10:08:34 +01:00
parent 72f7d09f58
commit 2319f72b29
7 changed files with 108 additions and 7 deletions

View File

@@ -55,6 +55,7 @@ typedef struct {
int nts;
int nts_port;
int copy;
int ext_fields;
uint32_t authkey;
uint32_t cert_set;
double max_delay;