diff options
author | Cy Schubert <cy@FreeBSD.org> | 2014-12-20 22:52:39 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2014-12-20 22:52:39 +0000 |
commit | b5e14a1344528861a7016aa2c6b0f2e9630d1526 (patch) | |
tree | f04bed14f7e8aed5c0e9d2f7785175c7951036d3 /ntpdate/ntpdate.h | |
parent | 2b45e011ca352ce509bc83ae148230aeee0c7e0d (diff) |
Diffstat (limited to 'ntpdate/ntpdate.h')
-rw-r--r-- | ntpdate/ntpdate.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ntpdate/ntpdate.h b/ntpdate/ntpdate.h index 75fba4291065..df9c49eb4a22 100644 --- a/ntpdate/ntpdate.h +++ b/ntpdate/ntpdate.h @@ -89,10 +89,13 @@ struct server { /* - * Some defaults + * No less than 2s between requests to a server to stay within ntpd's + * default "discard minimum 1" (and 1s enforcement slop). That is + * enforced only if the nondefault limited restriction is in place, such + * as with "restrict ... limited" and "restrict ... kod limited". */ -#define MINTIMEOUT (2 * TIMER_HZ) /* 2s min. between packets */ -#define DEFTIMEOUT MINTIMEOUT /* (to the same server) */ +#define MINTIMEOUT (1 * TIMER_HZ) /* 1s min. between packets */ +#define DEFTIMEOUT (2 * TIMER_HZ) /* 2s by default */ #define DEFSAMPLES 4 /* get 4 samples per server */ #define DEFPRECISION (-5) /* the precision we claim */ #define DEFMAXPERIOD 60 /* maximum time to wait */ |