aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/ntpdate/ntpdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpdate/ntpdate.h')
-rw-r--r--contrib/ntp/ntpdate/ntpdate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ntp/ntpdate/ntpdate.h b/contrib/ntp/ntpdate/ntpdate.h
index 5ead20f9e48a..f3531b3f2434 100644
--- a/contrib/ntp/ntpdate/ntpdate.h
+++ b/contrib/ntp/ntpdate/ntpdate.h
@@ -15,7 +15,7 @@ extern void loadservers P((char *cfgpath));
*/
struct server {
struct server *next_server; /* next server in build list */
- struct sockaddr_in srcadr; /* address of remote host */
+ struct sockaddr_storage srcadr; /* address of remote host */
u_char version; /* version to use */
u_char leap; /* leap indicator */
u_char stratum; /* stratum of remote server */
@@ -97,3 +97,8 @@ struct server {
#define DEFMAXPERIOD 60 /* maximum time to wait */
#define DEFMINSERVERS 3 /* minimum responding servers */
#define DEFMINVALID 1 /* mimimum servers with valid time */
+
+/*
+ * Define the max number of sockets we can open
+ */
+#define MAX_AF 2