mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
When warning about discarding packets in secure mode, include the IP
address of the most recent offender.
This commit is contained in:
parent
82f35547c9
commit
624bb2d1c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40930
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user