Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/include/ntpd.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
extern void loop_config(int, double); | extern void loop_config(int, double); | ||||
extern void select_loop(int); | extern void select_loop(int); | ||||
extern void huffpuff(void); | extern void huffpuff(void); | ||||
extern u_long sys_clocktime; | extern u_long sys_clocktime; | ||||
extern u_int sys_tai; | extern u_int sys_tai; | ||||
extern int freq_cnt; | extern int freq_cnt; | ||||
/* ntp_monitor.c */ | /* ntp_monitor.c */ | ||||
#define MON_HASH_SIZE (1U << mon_hash_bits) | #define MON_HASH_SIZE ((size_t)1U << mon_hash_bits) | ||||
#define MON_HASH_MASK (MON_HASH_SIZE - 1) | #define MON_HASH_MASK (MON_HASH_SIZE - 1) | ||||
#define MON_HASH(addr) (sock_hash(addr) & MON_HASH_MASK) | #define MON_HASH(addr) (sock_hash(addr) & MON_HASH_MASK) | ||||
extern void init_mon (void); | extern void init_mon (void); | ||||
extern void mon_start (int); | extern void mon_start (int); | ||||
extern void mon_stop (int); | extern void mon_stop (int); | ||||
extern u_short ntp_monitor (struct recvbuf *, u_short); | extern u_short ntp_monitor (struct recvbuf *, u_short); | ||||
extern void mon_clearinterface(endpt *interface); | extern void mon_clearinterface(endpt *interface); | ||||
▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
extern int ntp_enable; /* clock discipline enabled */ | extern int ntp_enable; /* clock discipline enabled */ | ||||
extern int pll_control; /* kernel support available */ | extern int pll_control; /* kernel support available */ | ||||
extern int kern_enable; /* kernel support enabled */ | extern int kern_enable; /* kernel support enabled */ | ||||
extern int hardpps_enable; /* kernel PPS discipline enabled */ | extern int hardpps_enable; /* kernel PPS discipline enabled */ | ||||
extern int ext_enable; /* external clock enabled */ | extern int ext_enable; /* external clock enabled */ | ||||
extern int cal_enable; /* refclock calibrate enable */ | extern int cal_enable; /* refclock calibrate enable */ | ||||
extern int allow_panic; /* allow panic correction (-g) */ | extern int allow_panic; /* allow panic correction (-g) */ | ||||
extern int enable_panic_check; /* Can we check allow_panic's state? */ | |||||
extern int force_step_once; /* always step time once at startup (-G) */ | extern int force_step_once; /* always step time once at startup (-G) */ | ||||
extern int mode_ntpdate; /* exit on first clock set (-q) */ | extern int mode_ntpdate; /* exit on first clock set (-q) */ | ||||
extern int peer_ntpdate; /* count of ntpdate peers */ | extern int peer_ntpdate; /* count of ntpdate peers */ | ||||
/* | /* | ||||
* Clock state machine variables | * Clock state machine variables | ||||
*/ | */ | ||||
extern u_char sys_poll; /* system poll interval (log2 s) */ | extern u_char sys_poll; /* system poll interval (log2 s) */ | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |