Date: Thu, 22 Jan 1998 22:44:54 -0500 (EST) From: ath@bellcore.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5551: iijppp does not allow a filter for any established tcp packet Message-ID: <199801230344.WAA24807@vpc20.bellcore.com>
index | next in thread | raw e-mail
>Number: 5551
>Category: bin
>Synopsis: iijppp does not allow a filter for any established tcp packet
>Confidential: yes
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 22 19:50:00 PST 1998
>Last-Modified:
>Originator: Andrew Heybey
>Organization:
>Release: FreeBSD 2.2.5-RELEASE i386
>Environment:
Using iijppp to filter packets.
>Description:
The man page for ppp implies that a filter of the form:
<action> tcp estab
should work. However, it is rejected as a syntax error by the parser.
>How-To-Repeat:
Put a line such as
ifilter 0 permit tcp estab
in /etc/ppp/ppp.conf
>Fix:
*** filter.c 1998/01/23 03:38:16 1.1
--- filter.c 1998/01/23 03:38:33
***************
*** 202,208 ****
filterdata.opt.srcop = filterdata.opt.dstop = A_NONE;
return (1);
}
! if (argc < 3) {
LogPrintf(LogWARN, "ParseUdpOrTcp: bad udp/tcp syntax.\n");
return (0);
}
--- 202,208 ----
filterdata.opt.srcop = filterdata.opt.dstop = A_NONE;
return (1);
}
! if (argc < 3 && argc != 1) {
LogPrintf(LogWARN, "ParseUdpOrTcp: bad udp/tcp syntax.\n");
return (0);
}
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801230344.WAA24807>
