diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-11-12 19:48:45 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-11-12 19:48:45 +0000 |
| commit | 710e9c29700217907f716687e283466ddb21bde8 (patch) | |
| tree | 9d7836dbad6265d59ac8713008355329aa6b4ae5 | |
| parent | c40e02e7f387d9833126e6dfbd35a3218310737d (diff) | |
Notes
| -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 d7174a919823..c1c9484c865e 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); |
