*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;
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;
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
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
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.
*/
/* ================================================== */
-/* 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