chrony/test/unit
Miroslav Lichvar 0189dac7d8 ntp: save response when waiting for HW TX timestamp
Rework handling of late HW TX timestamps. Instead of suspending reading
from client-only sockets that have HW TX timestamping enabled, save the
whole response if it is valid and a HW TX timestamp was received for the
source before. When the timestamp is received, or the configurable
timeout is reached, process the saved response again, but skip the
authentication test as the NTS code allows only one response per
request. Only one valid response per source can be saved. If a second
valid response is received while waiting for the timestamp, process both
responses immediately in the order they were received.

The main advantage of this approach is that it works on all sockets, i.e.
even in the symmetric mode and with NTP-over-PTP, and the kernel does
not need to buffer invalid responses.
2023-03-30 15:44: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: save response when waiting for HW TX timestamp 2023-03-30 15:44: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 ntp: avoid unnecessary source lookups 2021-12-14 10:47:10 +01: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: add server support for authentication with AES-128-GCM-SIV 2022-10-19 15:50:39 +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: fix incorrect use of RAND_MAX 2021-09-23 15:51:35 +02:00
test.h test: drop logging suspension 2021-03-11 11:47:31 +01:00
util.c cmdmon: define 64-bit integer 2023-03-30 15:17:50 +02:00