]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: describe fields in SOCK sample
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Dec 2015 11:43:28 +0000 (12:43 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 18 Dec 2015 11:44:15 +0000 (12:44 +0100)
refclock_sock.c

index 97f740b24a95881b693bc10428930671dcd027fb..8ab4d527d29920d3814076de93b245532c68058a 100644 (file)
 #define SOCK_MAGIC 0x534f434b
 
 struct sock_sample {
+  /* Time of the measurement (system time) */
   struct timeval tv;
+
+  /* Offset between the true time and the system time (in seconds) */
   double offset;
+
+  /* Non-zero if the sample is from a PPS signal, i.e. another source
+     is needed to obtain seconds */
   int pulse;
+
+  /* 0 - normal, 1 - insert leap second, 2 - delete leap second */
   int leap;
+
+  /* Padding, ignored */
   int _pad;
+
+  /* Protocol identifier (0x534f434b) */
   int magic;
 };