chrony/test/unit
Miroslav Lichvar b0267475e3 ntp: extend local timestamp for PTP correction
Add two new fields to the NTP_Local_Timestamp structure:
- receive duration as the time it takes to receive the ethernet frame,
  currently known only with HW timestamping
- network correction as a generalized PTP correction

The PTP correction is provided by transparent clocks in the correction
field of PTP messages to remove the receive, processing and queueing
delays of network switches and routers. Only one-step end-to-end unicast
transparent clocks are useful for NTP-over-PTP. Two-step transparent
clocks use follow-up messages and peer-to-peer transparent clocks don't
handle delay requests.

The RX duration will be included in the network correction to compensate
for asymmetric link speeds of the server and client as the NTP RX
timestamp corresponds to the end of the reception (in order to
compensate for the asymmetry in the normal case when no corrections
are applied).
2023-09-26 15:10:19 +02:00
..
addrfilt.c test: fix DEBUG_LOG use in unit tests 2017-03-13 12:04:26 +01:00
array.c test: add array unit test 2023-03-02 10:41:28 +01:00
clientlog.c clientlog: save source of transmit timestamps 2023-03-22 09:42:06 +01:00
cmac.c cmac+hash: change parameter types 2020-07-09 14:47:33 +02:00
hash.c hash: allow non-security MD5 use in FIPS mode 2021-09-02 15:17:08 +02:00
hwclock.c update copyright years 2022-08-29 15:04:33 +02:00
keys.c ntp: drop precompensation of TX timestamp 2020-07-09 14:46:57 +02:00
Makefile.in test: disable object dependencies in main makefile 2020-06-08 15:27:57 +02:00
ntp_auth.c ntp: move initial packet parsing from ntp_auth to ntp_core 2021-11-16 10:00:31 +01:00
ntp_core.c ntp: extend local timestamp for PTP correction 2023-09-26 15:10:19 +02:00
ntp_core.keys test: include CMAC keys in ntp_core unit test 2020-09-23 15:10:43 +02:00
ntp_ext.c test: add ntp_ext unit test 2020-03-05 16:02:15 +01:00
ntp_sources.c conf: improve log message for failed additions in sources reload 2023-09-12 08:11:25 +02:00
nts_ke.crt test: add nts unit tests 2020-03-05 16:02:15 +01:00
nts_ke.key test: add nts unit tests 2020-03-05 16:02:15 +01:00
nts_ke_client.c nts: add client support for authentication with AES-128-GCM-SIV 2022-10-19 15:50:39 +02:00
nts_ke_server.c nts: initialize unused part of server key 2023-05-25 10:28:50 +02:00
nts_ke_session.c nts: add support for multiple sets of trusted certificates 2021-02-18 17:44:04 +01:00
nts_ntp_auth.c nts: fix number of extension fields after failed encryption 2022-10-19 15:50:39 +02:00
nts_ntp_client.c nts: add client support for authentication with AES-128-GCM-SIV 2022-10-19 15:50:39 +02:00
nts_ntp_server.c nts: add server support for authentication with AES-128-GCM-SIV 2022-10-19 15:50:39 +02:00
quantiles.c quantiles: add function to get minimum k 2022-07-21 15:33:35 +02:00
regress.c test: add regress unit test 2017-06-27 15:29:01 +02:00
samplefilt.c samplefilt: add function to get maximum number of samples 2022-07-21 14:17:22 +02:00
siv.c siv: add functions to return min and max nonce length 2022-10-19 15:50:39 +02:00
smooth.c main: don't require root privileges with -Q option 2017-07-13 16:10:54 +02:00
sources.c update copyright years 2022-08-29 15:04:33 +02:00
test.c test: free memory in unit tests on exit 2023-04-13 16:22:50 +02:00
test.h test: drop logging suspension 2021-03-11 11:47:31 +01:00
util.c util: add conversion between intervals and NTP 64-bit format 2023-09-26 15:00:06 +02:00