Browse Source

Poll unsynchronized servers at the maximum interval and log a message about

them when in debug mode; ok henning@
OPENBSD_3_7
dtucker 20 years ago
parent
commit
890af70b55
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/usr.sbin/ntpd/client.c

+ 7
- 2
src/usr.sbin/ntpd/client.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: client.c,v 1.50 2004/12/15 12:24:21 dtucker Exp $ */
/* $OpenBSD: client.c,v 1.51 2004/12/15 12:29:25 dtucker Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -215,8 +215,13 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime)
return (0);
if ((msg.status & LI_ALARM) == LI_ALARM || msg.stratum == 0 ||
msg.stratum > NTP_MAXSTRATUM)
msg.stratum > NTP_MAXSTRATUM) {
interval = scale_interval(INTERVAL_QUERY_PATHETIC, 0.0);
set_next(p, interval);
log_info("reply from %s: not synced, next query %ds",
log_sockaddr((struct sockaddr *)&p->addr->ss), interval);
return (0);
}
/*
* From RFC 2030 (with a correction to the delay math):


Loading…
Cancel
Save