]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Update comments referencing RFC 1305
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 13 Oct 2014 10:49:40 +0000 (12:49 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 14 Oct 2014 14:52:22 +0000 (16:52 +0200)
reference.c
sources.c
sources.h
sourcestats.c
sourcestats.h
util.c

index 4b231a7925d5a8351c27461b5b555e3d04fd958a..494bfe961e3fa9f0f7923401195f34d87f95e3a5 100644 (file)
@@ -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;
index 67217bd1f6f41045e681dcd9086a05819d164d54..8f428b093564f5c3120331ff24cbec146f7e00ea 100644 (file)
--- 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;
index fecccc503089ac227d9f311bf518ab7284d8abab..c1c085f14a6f281ce442a3ce4daceb874ad9fcc9 100644 (file)
--- 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
index b32b9acfc27a5760b8f1f3b067233c54c737401a..130d9afbc0cf22e4fed02f1114bb8510020c379a 100644 (file)
@@ -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
index f40ca3104e71835fe5acd1be131aa0341c7b2c5a..30e2db7860f4746fd5bc3e83c5a6ec0afb3683fc 100644 (file)
@@ -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 adc6ca5b3153e9d0a598c9d9952b9661958db5a7..7797a3b9559d3aa53e0cbb346500d715a3aa4931 100644 (file)
--- 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