[Git][NTPsec/ntpsec][master] Restore full clocktypes table from NTP Classic as a legacy hack...

Eric S. Raymond gitlab at mg.gitlab.com
Wed Jun 22 20:28:39 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
f3704cda by Eric S. Raymond at 2016-06-22T16:26:34-04:00
Restore full clocktypes table from NTP Classic as a legacy hack...

...which lets ntpq mine data from legacy versions.  This table is
no longer used by ntpd.

- - - - -


1 changed file:

- libntp/clocktypes.c


Changes:

=====================================
libntp/clocktypes.c
=====================================
--- a/libntp/clocktypes.c
+++ b/libntp/clocktypes.c
@@ -1,5 +1,9 @@
 /*
  * Data for pretty printing clock types
+ *
+ * This table is nn longer used by ntpd. Many of these types no longer
+ * exist in NTPSec.  They're still listed here so ntpq will still be
+ * able to mine data from legacy versions. 
  */
 #include <config.h>
 #include <stdio.h>
@@ -14,8 +18,8 @@ struct clktype clktypes[] = {
 	  "LOCAL" },
 	{ REFCLK_GPS_TRAK,	"TRAK 8810 GPS Receiver (2)",
 	  "GPS_TRAK" },
-	{ REFCLK_NONE,		"not used (3)",
-	  "NOT_USED" },
+	{ REFCLK_WWV_PST,	"PSTI/Traconex WWV/WWVH Receiver (3)",
+	  "WWV_PST" },
 	{ REFCLK_SPECTRACOM,	"Spectracom (generic) Receivers (4)",
 	  "SPECTRACOM" },
 	{ REFCLK_TRUETIME,	"TrueTime (generic) Receivers (5)",
@@ -32,26 +36,26 @@ struct clktype clktypes[] = {
 	  "GPS_AS2201" },
 	{ REFCLK_GPS_ARBITER,	"Arbiter 1088A/B GPS Receiver (11)",
 	  "GPS_ARBITER" },
-	{ REFCLK_NONE,		"not used (12)",
-	  "NOT_USED" },
-	{ REFCLK_NONE,		"not used (13)",
-	  "NOT_USED" },
-	{ REFCLK_NONE,		"not used (14)",
-	  "NOT_USED" },
+	{ REFCLK_IRIG_TPRO,	"KSI/Odetics TPRO/S IRIG Interface (12)",
+	  "IRIG_TPRO" },
+	{ REFCLK_ATOM_LEITCH,	"Leitch CSD 5300 Master Clock Controller (13)",
+	  "ATOM_LEITCH" },
+	{ REFCLK_MSF_EES,	"EES M201 MSF Receiver (14)",
+	  "MSF_EES" },
 	{ REFCLK_NONE,		"not used (15)",
 	  "NOT_USED" },
-	{ REFCLK_NONE,		"not used (16)",
-	  "NOT_USED" },
-	{ REFCLK_NONE,		"not used (17)",
-	  "NOT_USED" },
+	{ REFCLK_IRIG_BANCOMM,	"Bancomm GPS/IRIG Receiver (16)",
+	  "GPS_BANC" },
+	{ REFCLK_GPS_DATUM,	"Datum Precision Time System (17)",
+	  "GPS_DATUM" },
 	{ REFCLK_ACTS,		"Automated Computer Time Service (18)",
 	  "ACTS_MODEM" },
-	{ REFCLK_NONE,		"not used (19)",
-	  "NOT_USED" },
+	{ REFCLK_WWV_HEATH,	"Heath WWV/WWVH Receiver (19)",
+	  "WWV_HEATH" },
 	{ REFCLK_GPS_NMEA,	"Generic NMEA GPS Receiver (20)",
 	  "GPS_NMEA" },
-	{ REFCLK_GPS_VME,	"not used (21)",
-	  "NOT_USED" },
+	{ REFCLK_GPS_VME,	"TrueTime GPS-VME Interface (21)",
+	  "GPS_VME" },
 	{ REFCLK_ATOM_PPS,	"PPS Clock Discipline (22)",
 	  "PPS" },
 	{ REFCLK_NONE,		"not used (23)",
@@ -62,9 +66,9 @@ struct clktype clktypes[] = {
 	  "NOT_USED" },
 	{ REFCLK_GPS_HP,	"HP 58503A GPS Time & Frequency Receiver (26)",
 	  "GPS_HP" },
-	{ REFCLK_NONE,		"not used (27)",
-	  "NOT_USED" },
-	{ REFCLK_SHM,		"Clock attached thru shared memory (28)",
+	{ REFCLK_ARCRON_MSF,	"ARCRON MSF (and DCF77) Receiver (27)",
+	  "MSF_ARCRON" },
+	{ REFCLK_SHM,		"Clock attached thru shared Memory (28)",
 	  "SHM" },
 	{ REFCLK_PALISADE,	"Trimble Navigation Palisade GPS (29)",
 	  "GPS_PALISADE" },
@@ -72,36 +76,34 @@ struct clktype clktypes[] = {
 	  "GPS_ONCORE" },
 	{ REFCLK_GPS_JUPITER,	"Rockwell Jupiter GPS (31)",
 	  "GPS_JUPITER" },
-	{ REFCLK_NONE,		"not used (32)",
-	  "NOT_USED" },
+	{ REFCLK_CHRONOLOG,	"Chrono-log K (32)",
+	  "CHRONOLOG" },
 	{ REFCLK_DUMBCLOCK,	"Dumb generic hh:mm:ss local clock (33)",
 	  "DUMBCLOCK" },
-	{ REFCLK_NONE,		"not used (34)",
-	  "NOT_USED" },
-	{ REFCLK_PCF,		"not used (35)",
-	  "NOT_USED"},
-	{ REFCLK_NONE,		"not used (36)",
-	  "NOT_USED" },
-	{ REFCLK_NONE,		"not used (37)",
-	  "NOT_USED" },
-	{ REFCLK_HOPF_SERIAL,	"not used (38)",
-	  "NOT_USED"},
-	{ REFCLK_HOPF_PCI,	"not used (39)",
-	  "NOT_USED"},
+	{ REFCLK_ULINK,		"Ultralink M320 WWVB receiver (34)",
+	  "ULINK_M320"},
+	{ REFCLK_PCF,		"Conrad parallel port radio clock (35)",
+	  "PCF"},
+	{ REFCLK_WWV_AUDIO,	"WWV/H Audio Demodulator/Decoder (36)",
+	  "WWV_AUDIO"},
+	{ REFCLK_FG,		"Forum Graphic GPS Dating Station (37)",
+	  "GPS_FG"},
+	{ REFCLK_HOPF_SERIAL,	"hopf Elektronic serial line receiver (38)",
+	  "HOPF_S"},
+	{ REFCLK_HOPF_PCI,	"hopf Elektronic PCI receiver (39)",
+	  "HOPF_P"},
 	{ REFCLK_JJY,		"JJY receiver (40)",
 	  "JJY"},
 	{ REFCLK_TT560,		"TrueTime 560 IRIG-B decoder (41)",
 	  "TT_IRIG"},
 	{ REFCLK_ZYFER,		"Zyfer GPStarplus receiver (42)",
 	  "GPS_ZYFER" },
-	{ REFCLK_IRIG_TPRO,	"KSI/Odetics TPRO/S IRIG Interface (12)",
-	  "IRIG_TPRO" },
-	{ REFCLK_NONE,		"not used (43)",
-	  "NOT_USED" },
+	{ REFCLK_RIPENCC,	"RIPE NCC Trimble driver (43)",
+	  "GPS_RIPENCC" },
 	{ REFCLK_NEOCLOCK4X,	"NeoClock4X DCF77 / TDF receiver (44)",
 	  "NEOCLK4X"},
-        { REFCLK_TSYNCPCI,      "not used (45)",
-          "NOT_USED"},
+        { REFCLK_TSYNCPCI,    "Spectracom TSYNC PCI timing board (45)",
+          "PCI_TSYNC"},
 	{ REFCLK_GPSDJSON,	"GPSD JSON socket (46)",
 	  "GPSD_JSON"},
 	{ -1,			"", "" }



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f3704cda18fb1a51bdf39bdc0b24847612b94e1c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160622/59df9b08/attachment.html>


More information about the vc mailing list