[ntpsec commit] Alas, the tos option description cannot be factored out...

Eric S. Raymond esr at ntpsec.org
Mon Oct 12 15:44:22 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    843751c7d08186b30022b8448d3bcdb49af83a7e
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=843751c7d08186b30022b8448d3bcdb49af83a7e

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Mon Oct 12 11:43:11 2015 -0400

Alas, the tos option description cannot be factored out...

...leave notes explaining why.

---

 docs/miscopt.txt  | 4 ++++
 ntpd/ntp.conf.txt | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/docs/miscopt.txt b/docs/miscopt.txt
index 5d25881..0e99c19 100644
--- a/docs/miscopt.txt
+++ b/docs/miscopt.txt
@@ -279,6 +279,10 @@ and so on is suppressed.
   `filenum` 'Nfiledescriptors';;
     Specifies the maximum number of file descriptors {ntpd} may have open
     at the same time. Defaults to system default.
+
+// A subset of the tos options is described on the ntp.conf manual page.
+// If you change this, be very sure to keep that syncronized.
+
 `tos` [`beacon` 'beacon' | `ceiling` 'ceiling' | `cohort` {`0` | `1`} | `floor` 'floor' | `maxclock` 'maxclock' | `maxdist` 'maxdist' | `minclock` 'minclock' | `mindist` 'mindist' | `minsane` 'minsane' | `orphan` 'stratum' | `orphanwait` 'delay']::
   This command alters certain system variables used by the the clock
   selection and clustering algorithms. The default values of these
diff --git a/ntpd/ntp.conf.txt b/ntpd/ntp.conf.txt
index 5de85df..370acbc 100644
--- a/ntpd/ntp.conf.txt
+++ b/ntpd/ntp.conf.txt
@@ -184,6 +184,10 @@ in `/usr/share/doc/{ntp}`).
 
 === Manycast Options ===
 
+// This is a subset of the tos options applicable to manycast.
+// It omits the more general tinkering options.  If you change this,
+// be very sure to keep docs/miscopt.txt synchronized.
+
 `tos` [`ceiling` _ceiling_ | `cohort` \{ `0` | `1` } | `floor` _floor_ | `minclock` _minclock_ | `minsane` _minsane_]::
   This command affects the clock selection and clustering algorithms. It
   can be used to select the quality and quantity of peers used to



More information about the vc mailing list