summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-04 22:24:21 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-04 22:24:21 +0000
commitf68f2fa2d4d669ed2568e73da8725b58355a8907 (patch)
tree40e76c6df9e192d94e1277e209e1547a3ad70ce4 /usr.sbin/ntpd/ntpd.h
parent8c245f80c6368601dfb6f3c3e285555f6371be9a (diff)
put interval defines in ntpd.h and name them consistently
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index 85fcb273fbb..77316d5a6c4 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.8 2004/07/04 11:01:49 alexander Exp $ */
+/* $OpenBSD: ntpd.h,v 1.9 2004/07/04 22:24:20 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -33,8 +33,11 @@
#define IDX2PEER_RESERVE 5
#define PFD_RESERVE 10
-#define NTPD_OPT_VERBOSE 0x0001
-#define NTPD_OPT_VERBOSE2 0x0002
+#define NTPD_OPT_VERBOSE 0x0001
+#define NTPD_OPT_VERBOSE2 0x0002
+
+#define INTERVAL_QUERY 60 /* sync with peers every n seconds */
+#define QUERYTIME_MAX 30 /* single query might take n secs max */
enum client_state {
STATE_NONE,