aboutsummaryrefslogtreecommitdiff
path: root/ntpdate/ntpdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'ntpdate/ntpdate.h')
-rw-r--r--ntpdate/ntpdate.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ntpdate/ntpdate.h b/ntpdate/ntpdate.h
index f3531b3f2434..75fba4291065 100644
--- a/ntpdate/ntpdate.h
+++ b/ntpdate/ntpdate.h
@@ -4,7 +4,7 @@
#include "ntp_malloc.h"
-extern void loadservers P((char *cfgpath));
+extern void loadservers (char *cfgpath);
/*
* The server structure is a much simplified version of the
@@ -15,14 +15,14 @@ extern void loadservers P((char *cfgpath));
*/
struct server {
struct server *next_server; /* next server in build list */
- struct sockaddr_storage srcadr; /* address of remote host */
+ sockaddr_u srcadr; /* address of remote host */
u_char version; /* version to use */
u_char leap; /* leap indicator */
u_char stratum; /* stratum of remote server */
s_char precision; /* server's clock precision */
u_char trust; /* trustability of the filtered data */
u_fp rootdelay; /* distance from primary clock */
- u_fp rootdispersion; /* peer clock dispersion */
+ u_fp rootdisp; /* peer clock dispersion */
u_int32 refid; /* peer reference ID */
l_fp reftime; /* time of peer's last update */
u_long event_time; /* time for next timeout */
@@ -91,7 +91,8 @@ struct server {
/*
* Some defaults
*/
-#define DEFTIMEOUT 5 /* 5 timer increments */
+#define MINTIMEOUT (2 * TIMER_HZ) /* 2s min. between packets */
+#define DEFTIMEOUT MINTIMEOUT /* (to the same server) */
#define DEFSAMPLES 4 /* get 4 samples per server */
#define DEFPRECISION (-5) /* the precision we claim */
#define DEFMAXPERIOD 60 /* maximum time to wait */