diff --git a/reference.c b/reference.c index 4b231a7..494bfe9 100644 --- a/reference.c +++ b/reference.c @@ -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; diff --git a/sources.c b/sources.c index 67217bd..8f428b0 100644 --- a/sources.c +++ b/sources.c @@ -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; diff --git a/sources.h b/sources.h index fecccc5..c1c085f 100644 --- a/sources.h +++ b/sources.h @@ -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 diff --git a/sourcestats.c b/sourcestats.c index b32b9ac..130d9af 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -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 diff --git a/sourcestats.h b/sourcestats.h index f40ca31..30e2db7 100644 --- a/sourcestats.h +++ b/sourcestats.h @@ -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. */ diff --git a/util.c b/util.c index adc6ca5..7797a3b 100644 --- a/util.c +++ b/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