From 624bb2d1c1abc886d90c7228968b025544d1e71c Mon Sep 17 00:00:00 2001 From: David Greenman Date: Thu, 5 Nov 1998 10:51:21 +0000 Subject: [PATCH] When warning about discarding packets in secure mode, include the IP address of the most recent offender. --- usr.sbin/syslogd/syslogd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 5c0ffd524e32..66d33c396e4b 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; #endif static const char rcsid[] = - "$Id: syslogd.c,v 1.40 1998/07/27 13:04:14 phk Exp $"; + "$Id: syslogd.c,v 1.41 1998/08/25 21:16:47 julian Exp $"; #endif /* not lint */ /* @@ -491,7 +491,8 @@ main(argc, argv) Vogons++; if (!(Vogons & (Vogons - 1))) { (void)snprintf(line, sizeof line, -"syslogd: discarded %d unwanted packets in secure mode", Vogons); +"syslogd: discarded %d unwanted packets in secure mode, last from %s", Vogons, + inet_ntoa(frominet.sin_addr)); logmsg(LOG_SYSLOG|LOG_AUTH, line, LocalHostName, ADDDATE); }