summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-08 01:21:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-08 01:21:10 +0000
commitd621a90a056e1cefe68fc5c3d7aa8c2716083cd4 (patch)
tree304627dbfbbf9f7d4c2f67ddaccdef8c673f75dc
parente83fc3d9336d69c0598426c6fca16f139bd9736f (diff)
log_debug() when a peer doesn't answer in time
-rw-r--r--usr.sbin/ntpd/ntp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 73892f54651..947b3af256c 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.15 2004/07/07 07:32:05 alexander Exp $ */
+/* $OpenBSD: ntp.c,v 1.16 2004/07/08 01:21:09 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -169,6 +169,8 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *conf)
client_query(p);
if (p->deadline > 0 && p->deadline <= time(NULL)) {
+ log_debug("no reply from %s received in time",
+ log_sockaddr((struct sockaddr *)&p->ss));
if (p->trustlevel >= TRUSTLEVEL_BADPEER &&
--p->trustlevel < TRUSTLEVEL_BADPEER)
log_info("peer %s now invalid",