]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
refclock_parse.c:
authorFrank Kardel <kardel@ntp.org>
Thu, 26 May 2005 19:36:08 +0000 (19:36 +0000)
committerFrank Kardel <kardel@ntp.org>
Thu, 26 May 2005 19:36:08 +0000 (19:36 +0000)
  implement fast refclock startup

bk: 42962528PvWRejXmLukG7F8RK7o5hg

ntpd/refclock_parse.c

index 2a7e41cfba0e348c5d2b7ad4a9728ef8c4397a87..f06b7791979b0a225b3ed2fb93a984b1a49ad277 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * /src/NTP/ntp4-dev/ntpd/refclock_parse.c,v 4.50 2005/04/16 20:51:35 kardel RELEASE_20050508_A
+ * /src/NTP/ntp4-dev/ntpd/refclock_parse.c,v 4.51 2005/05/26 19:19:14 kardel RELEASE_20050526_A
  *
- * refclock_parse.c,v 4.50 2005/04/16 20:51:35 kardel RELEASE_20050508_A
+ * refclock_parse.c,v 4.51 2005/05/26 19:19:14 kardel RELEASE_20050526_A
  *
  * generic reference clock driver for several DCF/GPS/MSF/... receivers
  *
 #include "ascii.h"
 #include "ieee754io.h"
 
-static char rcsid[]="4.50";
+static char rcsid[]="4.51";
 
 /**===========================================================================
  ** external interface to ntp mechanism
@@ -3890,9 +3890,10 @@ parse_process(
        }
        
        /*
-        * ready, unless the machine wants a sample
+        * ready, unless the machine wants a sample or 
+        * we are in fast startup mode (peer->dist > MAXDISTANCE)
         */
-       if (!parse->pollneeddata)
+       if (!parse->pollneeddata && parse->peer->disp <= MAXDISTANCE)
            return;
 
        parse->pollneeddata = 0;
@@ -5612,6 +5613,9 @@ int refclock_parse_bs;
  * History:
  *
  * refclock_parse.c,v
+ * Revision 4.51  2005/05/26 19:19:14  kardel
+ * implement fast refclock startup
+ *
  * Revision 4.50  2005/04/16 20:51:35  kardel
  * set pps_enable = 1 when binding a kernel PPS source
  *