summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp_msg.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-10-22 21:17:38 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-10-22 21:17:38 +0000
commit3f1293c0ad68c13d655ccde898aed2224c143d35 (patch)
tree326daa67a0d507a572a64ef8dac9ec2f08510869 /usr.sbin/ntpd/ntp_msg.c
parent900ef52dfdd08a0d57b291bd941f974c1c7dd81a (diff)
in server mode reply with stratum from the peer that we currently prefer
plus one
Diffstat (limited to 'usr.sbin/ntpd/ntp_msg.c')
-rw-r--r--usr.sbin/ntpd/ntp_msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp_msg.c b/usr.sbin/ntpd/ntp_msg.c
index 6ad8128ee6b..93c3647d57d 100644
--- a/usr.sbin/ntpd/ntp_msg.c
+++ b/usr.sbin/ntpd/ntp_msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp_msg.c,v 1.9 2004/10/13 13:35:19 henning Exp $ */
+/* $OpenBSD: ntp_msg.c,v 1.10 2004/10/22 21:17:37 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -30,7 +30,8 @@ int
ntp_getmsg(char *p, ssize_t len, struct ntp_msg *msg)
{
if (len != NTP_MSGSIZE_NOAUTH && len != NTP_MSGSIZE) {
- log_warnx("malformed packet received");
+ log_warnx("malformed packet received: len is %d should be %d "
+ "or with auth %d", len, NTP_MSGSIZE_NOAUTH, NTP_MSGSIZE);
return (-1);
}