diff options
author | dg <dg@FreeBSD.org> | 1998-11-05 10:51:21 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-11-05 10:51:21 +0000 |
commit | 60b560b337fe2a6159e49741372219aa0353da03 (patch) | |
tree | f8af219cc191c7540b75370b38dfe0e0533d2301 | |
parent | 33ecda9af6cd79db0f8bc85975b466659a140a5d (diff) | |
download | FreeBSD-src-60b560b337fe2a6159e49741372219aa0353da03.zip FreeBSD-src-60b560b337fe2a6159e49741372219aa0353da03.tar.gz |
When warning about discarding packets in secure mode, include the IP
address of the most recent offender.
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 5c0ffd5..66d33c3 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); } |