mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:25:07 -05:00
refclock: describe fields in SOCK sample
This commit is contained in:
@@ -37,11 +37,23 @@
|
|||||||
#define SOCK_MAGIC 0x534f434b
|
#define SOCK_MAGIC 0x534f434b
|
||||||
|
|
||||||
struct sock_sample {
|
struct sock_sample {
|
||||||
|
/* Time of the measurement (system time) */
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
|
/* Offset between the true time and the system time (in seconds) */
|
||||||
double offset;
|
double offset;
|
||||||
|
|
||||||
|
/* Non-zero if the sample is from a PPS signal, i.e. another source
|
||||||
|
is needed to obtain seconds */
|
||||||
int pulse;
|
int pulse;
|
||||||
|
|
||||||
|
/* 0 - normal, 1 - insert leap second, 2 - delete leap second */
|
||||||
int leap;
|
int leap;
|
||||||
|
|
||||||
|
/* Padding, ignored */
|
||||||
int _pad;
|
int _pad;
|
||||||
|
|
||||||
|
/* Protocol identifier (0x534f434b) */
|
||||||
int magic;
|
int magic;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user