diff options
author | brian <brian@FreeBSD.org> | 1997-11-12 19:48:45 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-12 19:48:45 +0000 |
commit | 1a846301b5cf6c9523ffe5070b7ce4ce4b217580 (patch) | |
tree | 048049c3faf54c5d63bfd86fa7934680ce2af730 /usr.sbin/ppp/ip.c | |
parent | d99cc94f138fb47191d70c0d7b7241428a189ef0 (diff) | |
download | FreeBSD-src-1a846301b5cf6c9523ffe5070b7ce4ce4b217580.zip FreeBSD-src-1a846301b5cf6c9523ffe5070b7ce4ce4b217580.tar.gz |
Log whether or not IP packets are bloked due to
a filter.
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index d7174a9..c1c9484 100644 --- a/usr.sbin/ppp/ip.c +++ b/usr.sbin/ppp/ip.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ip.c,v 1.26 1997/10/26 01:02:52 brian Exp $ + * $Id: ip.c,v 1.27 1997/10/26 12:42:10 brian Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -341,18 +341,20 @@ PacketCheck(char *cp, int nb, int direction) break; } - if (logit) - LogPrintf(LogTCPIP, "%s\n", logbuf); - if ((FilterCheck(pip, direction) & A_DENY)) { - LogPrintf(LogDEBUG, "blocked.\n"); + if (logit) + LogPrintf(LogTCPIP, "%s - BLOCKED\n", logbuf); if (direction == 0) IcmpError(pip, pri); return (-1); } else { if (FilterCheck(pip, FL_KEEP) & A_DENY) { /* Check Keep Alive filter */ + if (logit) + LogPrintf(LogTCPIP, "%s - NO KEEPALIVE\n", logbuf); ipKeepAlive = 0; } else { + if (logit) + LogPrintf(LogTCPIP, "%s\n", logbuf); ipKeepAlive = 1; } return (pri); |