summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2004-12-14 23:44:21 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2004-12-14 23:44:21 +0000
commit579d77b1411af5600d62aebbf0d1045f49b1b31c (patch)
tree0bb7c53073da39e01f83e99e9a9d80c6cece5483 /usr.sbin/ntpd
parent1938717a4647e8c6064852a185679184a5c96c9b (diff)
If polling a server results in an error, drop that server to the maximum
poll interval; ok henning@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index e066d3101b3..6489253e725 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.48 2004/12/13 12:22:52 dtucker Exp $ */
+/* $OpenBSD: client.c,v 1.49 2004/12/14 23:44:20 dtucker Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -185,6 +185,9 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime)
errno == ENETDOWN || errno == ECONNREFUSED) {
log_warn("recvfrom %s",
log_sockaddr((struct sockaddr *)&p->addr->ss));
+ interval = INTERVAL_QUERY_PATHETIC *
+ (QSCALE_OFF_MAX / QSCALE_OFF_MIN);
+ set_next(p, interval);
return (0);
} else
fatal("recvfrom");