2 chronyd/chronyc - Programs for keeping computer clocks accurate.
4 **********************************************************************
5 * Copyright (C) Richard P. Curnow 1997-2002
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 **********************************************************************
22 =======================================================================
24 Data structure definitions within the daemon for various reports that
31 #include "addressing.h"
38 enum {RPT_NTP_CLIENT
, RPT_NTP_PEER
, RPT_LOCAL_REFERENCE
} mode
;
49 unsigned long latest_meas_ago
; /* seconds */
50 double orig_latest_meas
; /* seconds */
51 double latest_meas
; /* seconds */
52 double latest_meas_err
; /* seconds */
60 struct timespec ref_time
;
61 double current_correction
;
65 double resid_freq_ppm
;
68 double root_dispersion
;
69 double last_update_interval
;
75 unsigned long n_samples
;
77 unsigned long span_seconds
;
78 double resid_freq_ppm
;
82 double est_offset_err
;
83 } RPT_SourcestatsReport
;
86 struct timespec ref_time
;
87 unsigned long n_samples
;
89 unsigned long span_seconds
;
90 double rtc_seconds_fast
;
91 double rtc_gain_rate_ppm
;
105 int8_t ntp_timeout_interval
;
106 uint32_t last_ntp_hit_ago
;
107 uint32_t last_nke_hit_ago
;
108 uint32_t last_cmd_hit_ago
;
109 } RPT_ClientAccessByIndex_Report
;
119 uint64_t ntp_auth_hits
;
120 uint64_t ntp_interleaved_hits
;
121 uint64_t ntp_timestamps
;
122 uint64_t ntp_span_seconds
;
123 uint64_t ntp_daemon_rx_timestamps
;
124 uint64_t ntp_daemon_tx_timestamps
;
125 uint64_t ntp_kernel_rx_timestamps
;
126 uint64_t ntp_kernel_tx_timestamps
;
127 uint64_t ntp_hw_rx_timestamps
;
128 uint64_t ntp_hw_tx_timestamps
;
129 } RPT_ServerStatsReport
;
132 struct timespec when
;
133 double slewed_offset
;
136 } RPT_ManualSamplesReport
;
144 } RPT_ActivityReport
;
152 double last_update_ago
;
153 double remaining_time
;
154 } RPT_SmoothingReport
;
159 uint16_t remote_port
;
167 double root_dispersion
;
169 struct timespec ref_time
;
172 double peer_dispersion
;
173 double response_time
;
174 double jitter_asymmetry
;
180 uint32_t total_tx_count
;
181 uint32_t total_rx_count
;
182 uint32_t total_valid_count
;
183 uint32_t total_good_count
;
192 uint32_t last_ke_ago
;
206 uint32_t last_sample_ago
;
212 #endif /* GOT_REPORTS_H */