Update comments referencing RFC 1305
This commit is contained in:
parent
8fbfe55e92
commit
2c033989b6
6 changed files with 5 additions and 12 deletions
|
@ -1071,7 +1071,7 @@ REF_GetReferenceParams
|
|||
*ref_id = LOCAL_REFERENCE_ID;
|
||||
/* Make the reference time be now less a second - this will
|
||||
scarcely affect the client, but will ensure that the transmit
|
||||
timestamp cannot come before this (which would cause test 6 to
|
||||
timestamp cannot come before this (which would cause test 7 to
|
||||
fail in the client's read routine) if the local system clock's
|
||||
read routine is broken in any way. */
|
||||
*ref_time = *local_time;
|
||||
|
|
|
@ -848,9 +848,7 @@ SRC_SelectSource(SRC_Instance updated_inst)
|
|||
sel_prefer = 0;
|
||||
}
|
||||
|
||||
/* Now find minimum stratum. If none are left now,
|
||||
tough. RFC1305 is not so harsh on pruning sources due to
|
||||
excess variance, which prevents this from happening */
|
||||
/* Now find minimum stratum. If none are left now, tough. */
|
||||
|
||||
index = sel_sources[0];
|
||||
min_stratum = sources[index]->sel_info.stratum;
|
||||
|
|
|
@ -104,7 +104,7 @@ extern void SRC_GetFrequencyRange(SRC_Instance instance, double *lo, double *hi)
|
|||
indicates that the local clock is FAST relative to it.
|
||||
|
||||
root_delay and root_dispersion are in seconds, and are as per
|
||||
RFC1305. root_dispersion only includes the peer's root dispersion
|
||||
RFC 5905. root_dispersion only includes the peer's root dispersion
|
||||
+ local sampling precision + skew dispersion accrued during the
|
||||
measurement. It is the job of the source statistics algorithms +
|
||||
track.c to add on the extra dispersion due to the residual standard
|
||||
|
|
|
@ -119,8 +119,7 @@ struct SST_Stats_Record {
|
|||
sample times. In this module, we use the convention that
|
||||
positive means the local clock is FAST of the source and negative
|
||||
means it is SLOW. This is contrary to the convention in the NTP
|
||||
stuff; that part of the code is written to correspond with
|
||||
RFC1305 conventions. */
|
||||
stuff. */
|
||||
double offsets[MAX_SAMPLES * REGRESS_RUNS_RATIO];
|
||||
|
||||
/* This is an array of the offsets as originally measured. Local
|
||||
|
|
|
@ -55,10 +55,6 @@ extern void SST_ResetInstance(SST_Stats inst);
|
|||
seconds. Positive indicates that the local clock if FAST (contrary
|
||||
to the NTP parts of the software)
|
||||
|
||||
root_distance is the Lambda+Delta/2 term in RFC1305, but excluding
|
||||
the extra dispersion due to the residual standard deviation after
|
||||
we have done the regression fit.
|
||||
|
||||
stratum is the stratum of the source from which the sample came.
|
||||
*/
|
||||
|
||||
|
|
2
util.c
2
util.c
|
@ -549,7 +549,7 @@ UTI_DoubleToInt32(double x)
|
|||
|
||||
/* ================================================== */
|
||||
|
||||
/* Seconds part of RFC1305 timestamp correponding to the origin of the
|
||||
/* Seconds part of NTP timestamp correponding to the origin of the
|
||||
struct timeval format. */
|
||||
#define JAN_1970 0x83aa7e80UL
|
||||
|
||||
|
|
Loading…
Reference in a new issue