From dbc22579cb378f381a6135e55add86a1f19efc50 Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Sun, 7 Apr 2024 16:41:49 +1000 Subject: [PATCH] Updates to NTP reference identifier codes. Includes additional official identifier DFM [1], the NIST's UT1 servers [2], and additional unofficial identifiers used by various vendors [3-7]. 1 https://www.iana.org/assignments/ntp-parameters/ntp-parameters.xhtml#ntp-parameters-1 2 https://www.nist.gov/pml/time-and-frequency-division/time-services/ut1-ntp-time-dissemination 3 https://www.meinbergglobal.com/english/info/ntp-refid.htm 4 https://www.sidnlabs.nl/downloads/2A3GL3YHdVKJVNiSfx3kmb/c267e2a04785a8123bfef9a832811926/SIDN-Labs-NTP-Platform_Internetstandaarden_20200910_x.pdf 5 https://timetoolsltd.com/wp-content/uploads/2020/10/T1300-T-Series-User-Guide.pdf 6 https://docs.ntpsec.org/latest/driver_generic.html 7 https://docs.ntpsec.org/latest/driver_gpsd.html Signed-off-by: Rob Gill --- epan/dissectors/packet-ntp.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-ntp.c b/epan/dissectors/packet-ntp.c index c8648edb5f..d9e6fb5c5a 100644 --- a/epan/dissectors/packet-ntp.c +++ b/epan/dissectors/packet-ntp.c @@ -210,7 +210,9 @@ static const struct { const char *id; const char *data; } primary_sources[] = { - /* IANA / RFC 5905 */ + /* Reference Identifier Codes + * https://www.iana.org/assignments/ntp-parameters/ntp-parameters.xhtml#ntp-parameters-1 + */ { "GOES", "Geostationary Orbit Environment Satellite" }, { "GPS\0", "Global Position System" }, { "GAL\0", "Galileo Positioning System" }, @@ -230,8 +232,10 @@ static const struct { { "ACTS", "NIST telephone modem" }, { "USNO", "USNO telephone modem" }, { "PTB\0", "European telephone modem" }, + { "DFM\0", "UTC(DFM)"}, /* Unofficial codes */ + { "LCL\0", "uncalibrated local clock" }, { "LOCL", "uncalibrated local clock" }, { "CESM", "calibrated Cesium clock" }, { "RBDM", "calibrated Rubidium clock" }, @@ -241,6 +245,19 @@ static const struct { { "DTS\0", "Digital Time Service" }, { "ATOM", "Atomic clock (calibrated)" }, { "VLF\0", "VLF radio (OMEGA,, etc.)" }, + { "DCFa", "DCF77 with amplitude modulation" }, + { "DCFp", "DCF77 with phase modulation/pseudo random phase modulation" }, + { "PZF\0", "DCF77 correlation receiver for middle Europe" }, + { "PZFs", "DCF77 correlation receiver (with shared memory access)" }, + { "PZFi", "DCF77 correlation receiver (with interrupt based access)" }, + { "GPSD", "GPSD client driver" }, + { "GPSs", "GPS (with shared memory access)" }, + { "GPSi", "GPS (with interrupt based access)" }, + { "GLNs", "GPS/GLONASS (with shared memory access)" }, + { "GLNi", "GPS/GLONASS (with interrupt based access)" }, + { "GNSS", "Global Navigation Satellite System" }, + { "MRS\0", "Multi Reference System" }, + { "Nut1", "UT1(NIST)" }, { "1PPS", "External 1 PPS input" }, { "FREE", "(Internal clock)" }, // { "INIT", "(Initialization)" },