summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-12-28 02:46:59 +0000
committerbrian <brian@cvs.openbsd.org>1997-12-28 02:46:59 +0000
commit1114238242b38f9b4e02b087a3eff40b89ff9044 (patch)
tree602377889b4177f33d74699ae7050ba95c9de558 /usr.sbin/ppp/ip.c
parentc23e03e32d1e3e01b558ffc174d07f7d8241716c (diff)
If a packet causes a dial, continue to test whether it's
blocked in the output filter. If so, proceed with the dial despite dropping the packet.
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 0bda3118a45..b2403fab5ed 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.2 1997/12/24 09:30:34 brian Exp $
+ * $Id: ip.c,v 1.3 1997/12/28 02:46:57 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -273,7 +273,7 @@ PacketCheck(char *cp, int nb, int direction)
int logit, loglen;
static char logbuf[200];
- logit = LogIsKept(LogTCPIP);
+ logit = LogIsKept(LogTCPIP) && direction != FL_DIAL;
loglen = 0;
pip = (struct ip *) cp;