From: Harlan Stenn Date: Wed, 27 Nov 2002 03:43:12 +0000 (-0500) Subject: Log the IP of bad mode 7 packets. X-Git-Tag: NTP_4_1_1C_RC1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a3227f35947e2bcba5587e25bac7e44f068e51b;p=thirdparty%2Fntp.git Log the IP of bad mode 7 packets. From: Scott Hazen Mueller bk: 3de43f50pT3jyfW1HddS0gNF5ssk9A --- diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c index 260b48b1e..2444081cd 100644 --- a/ntpd/ntp_request.c +++ b/ntpd/ntp_request.c @@ -413,7 +413,7 @@ process_private( || (++ec, rbufp->recv_length > REQ_LEN_MAC) || (++ec, rbufp->recv_length < REQ_LEN_HDR) ) { - msyslog(LOG_ERR, "process_private: INFO_ERR_FMT: test %d failed", ec); + msyslog(LOG_ERR, "process_private: INFO_ERR_FMT: test %d failed, pkt from %s", ec, inet_ntoa(srcadr->sin_addr)); req_ack(srcadr, inter, inpkt, INFO_ERR_FMT); return; }