[Git][NTPsec/ntpsec][master] Remove supportt for listen-only Atron flag...

Eric S. Raymond gitlab at mg.gitlab.com
Fri Jul 1 13:18:04 UTC 2016


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


Commits:
25f4902a by Eric S. Raymond at 2016-07-01T09:16:50-04:00
Remove supportt for listen-only Atron flag...

...it requites a streams module from an obsolete Sun version.

- - - - -


2 changed files:

- docs/driver_austron.txt
- ntpd/refclock_austron.c


Changes:

=====================================
docs/driver_austron.txt
=====================================
--- a/docs/driver_austron.txt
+++ b/docs/driver_austron.txt
@@ -23,14 +23,6 @@ Module, Output Buffer Module, IRIG-B Interface Module and LORAN Assist
 Module. It requires the RS232 Buffered Serial Interface module for
 communication with the driver.
 
-For use with a single computer, the receiver can be connected directly
-to the receiver. For use with multiple computers, one of them is
-connected directly to the receiver and generates the polling messages.
-The other computers just listen to the receiver output directly or
-through a buffer amplifier. For computers that just listen, the
-+flag2+ option must be set and the +ppsclock+ streams module
-configured on each of them.
-
 This receiver is capable of a comprehensive and large volume of
 statistics and operational data. The specific data collection commands
 and attributes are embedded in the driver source code; however, the
@@ -59,7 +51,7 @@ written as-is to the +clockstats+ file.
 +flag1 {0 | 1}+::
   Not used by this driver.
 +flag2 {0 | 1}+::
-  Set for computers that listen-only.
+  Not used by this driver.
 +flag3 {0 | 1}+::
   Not used by this driver.
 +flag4 {0 | 1}+::


=====================================
ntpd/refclock_austron.c
=====================================
--- a/ntpd/refclock_austron.c
+++ b/ntpd/refclock_austron.c
@@ -1,6 +1,5 @@
 /*
- * refclock_austron - clock driver for the Austron 2201A GPS
- *	Timing Receiver
+ * refclock_austron - clock driver for the Austron 2201A GPS Timing Receiver
  */
 
 #include <config.h>
@@ -69,7 +68,7 @@ struct as2201unit {
 };
 
 /*
- * Radio commands to extract statitistics
+ * Radio commands to extract statistics
  *
  * A command consists of an ASCII string terminated by a <cr> (\r). The
  * command list consist of a sequence of commands terminated by a null
@@ -253,8 +252,6 @@ as2201_receive(
 	 * the timecode; in the later case, save the number of lines and
 	 * quietly return.
 	 */
-	if (pp->sloppyclockflag & CLK_FLAG2)
-		pp->lastrec = trtmp;
 	if (up->linect > 0) {
 		up->linect--;
 		if ((int)(up->lastptr - up->stats + pp->lencode) > SMAX - 2)
@@ -368,8 +365,7 @@ as2201_poll(
 		refclock_report(peer, CEVNT_FAULT);
 	} else {
 		pp->polls++;
-		if (!(pp->sloppyclockflag & CLK_FLAG2))
-			get_systime(&pp->lastrec);
+		get_systime(&pp->lastrec);
 	}
         if (pp->coderecv == pp->codeproc) {
                 refclock_report(peer, CEVNT_TIMEOUT);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/25f4902ae90960e72dbe6170c8a95cd799f86b51
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160701/11f97740/attachment.html>


More information about the vc mailing list