]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: add support for NTP over PTP
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 18 Aug 2021 10:42:07 +0000 (12:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Aug 2021 12:51:38 +0000 (14:51 +0200)
commitbe3158c4e5b2a88b199d5dce172e0bbb327a7dab
treef22b42a68b7c16a0ff8958a7d05d7d8b862edca6
parent2f1d5d9255211ac961ecf9327dfbcefa6c49e7ab
ntp: add support for NTP over PTP

Allow NTP messages to be exchanged as a payload of PTP messages to
enable full hardware timestamping on NICs that can timestamp PTP packets
only. Implemented is the protocol described in this draft (version 00):

https://datatracker.ietf.org/doc/draft-mlichvar-ntp-over-ptp/

This is an experimental feature. It can be changed or removed in future.
The used PTP domain is 123 and the NTP TLV type is 0x2023 from the "do
not propagate" experimental range.

The ptpport directive enables NTP-over-PTP as a server and as a client
for all sources that have the port option set to the PTP port. The port
should be the PTP event port (319) to trigger timestamping in the
hardware.

The implementation is contained to ntp_io. It is transparent to
ntp_core.
conf.c
conf.h
doc/chrony.conf.adoc
ntp_io.c
ntp_io.h
ntp_io_linux.c
ptp.h [new file with mode: 0644]
socket.c