Commit c14ef341 authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Addressing GitLab Issue #108, add a "tos maxdisp" configuration command.

parent b8191796
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -150,6 +150,10 @@ few will be user-visible.
  in /etc/ntp.conf finding /etc/foo rather than looking for foo in
  ypur current directory.

* It is now possible to set the peer maximum dispersion with "tos
  maxdisp". See RFC5905 for discussion of this synchronization
  parameter.

* For the generic (parse) driver only: Using the new refclock syntax,
  the maximum number of units that can be set up changes from 4
  (numbers 0-3) to unlimited.  However, the old magic-address syntax
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ include::includes/misc-options.txt[]
    minimum number of packets to set the system clock and the maximum
    roundtrip delay. It can be decreased to improve reliability or
    increased to synchronize clocks on the Moon or planets.
  +maxdisp+ 'maxdispersion';;
    Specify the maximum dispersion used by the clock synchronization
    algorithm. The default is 16s.  This is also the dispersion
    assigned to missing data. See RFC5905 for discussion.
  +minclock+ 'minclock';;
    Specify the number of servers used by the clustering algorithm as
    the minimum to include on the candidate list. The default is 3. This
+1 −1
Original line number Diff line number Diff line
@@ -621,7 +621,7 @@ struct pkt {
#define PROTO_CALLDELAY		20
#define PROTO_MINDISP		21
#define PROTO_MAXDIST		22
	/* available		23 */
#define	PROTO_MAXDISP		23
#define	PROTO_MAXHOP		24
#define	PROTO_BEACON		25
#define	PROTO_ORPHAN		26
+1 −0
Original line number Diff line number Diff line
@@ -180,6 +180,7 @@ extern int leapdif; /* TAI difference step at next leap second*/
extern	int	sys_orphan;
extern	double	sys_mindisp;
extern	double	sys_maxdist;
extern	double	sys_maxdisp;

extern	void	poll_update	(struct peer *, uint8_t);

+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ struct key_tok ntp_keywords[] = {
{ "ceiling",		T_Ceiling,		FOLLBY_TOKEN },
{ "cohort",		T_Cohort,		FOLLBY_TOKEN },
{ "mindist",		T_Mindist,		FOLLBY_TOKEN },
{ "maxdisp",		T_Maxdisp,		FOLLBY_TOKEN },
{ "maxdist",		T_Maxdist,		FOLLBY_TOKEN },
{ "beacon",		T_Beacon,		FOLLBY_TOKEN },
{ "orphan",		T_Orphan,		FOLLBY_TOKEN },
Loading