[Git][NTPsec/ntpsec][master] Support two more feature reversions under --ebable-classic-mode.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Dec 18 04:45:24 UTC 2016


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


Commits:
30e3000a by Eric S. Raymond at 2016-12-17T23:44:43-05:00
Support two more feature reversions under --ebable-classic-mode.

- - - - -


3 changed files:

- docs/ntpsec.txt
- ntpd/refclock_modem.c
- ntpd/refclock_trimble.c


Changes:

=====================================
docs/ntpsec.txt
=====================================
--- a/docs/ntpsec.txt
+++ b/docs/ntpsec.txt
@@ -73,10 +73,12 @@ a build-time switch, not a run-time one).
 * The shortname of --help options is now -h, not -?
 
 * If you had a refclock on a path of the form /dev/palisadeNNN, that
-  link needs to change to /dev/trimbleNNN.
+  link needs to change to /dev/trimbleNNN. Reverted in the
+  --enable-classic-mode build.
 
 * If you had a refclock on a path of the form /dev/actsNNN, that
-  link needs to change to /dev/modemNNN.
+  link needs to change to /dev/modemNNN. Reverted in the
+  -classic-mode build.
 
 * An instance of +ntpq+ built from the NTPsec code
   querying a legacy NTP daemon will not automatically display


=====================================
ntpd/refclock_modem.c
=====================================
--- a/ntpd/refclock_modem.c
+++ b/ntpd/refclock_modem.c
@@ -125,7 +125,11 @@
 /*
  * Interface definitions
  */
+#ifndef ENABLE_CLASSIC_MODE
 #define	DEVICE		"/dev/modem%d" /* device name and unit */
+#else
+#define	DEVICE		"/dev/acts%d" /* device name and unit */
+#endif
 #define	SPEED232	B19200	/* uart speed (19200 bps) */
 #define	PRECISION	(-10)	/* precision assumed (about 1 ms) */
 #define LOCKFILE	"/var/spool/lock/LCK..cua%d"


=====================================
ntpd/refclock_trimble.c
=====================================
--- a/ntpd/refclock_trimble.c
+++ b/ntpd/refclock_trimble.c
@@ -74,7 +74,11 @@
 /*
  * I/O Definitions
  */
+#ifndef ENABLE_CLASSIC_MODE
 #define	DEVICE		"/dev/trimble%d" 	/* device name and unit */
+#else
+#define	DEVICE		"/dev/palisade%d" 	/* device name and unit */
+#endif
 #define	SPEED232	B9600		  	/* uart speed (9600 baud) */
 
 /*



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/30e3000a9b6e1dfb3cb7aa0c51a3ddc6dff93c52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161218/bba8ad0d/attachment.html>


More information about the vc mailing list