Bug 13819

Summary: [PATCH] Userland ppp rejects "lt" operator in filter
Product: Base System Reporter: dphill <dphill>
Component: miscAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dphill 1999-09-19 15:10:01 UTC
The command:
set filter in 9 deny tcp dst lt 1024
gives the error:
Warning: ParseUdpOrTcp: bad operation

Fix: Consider the following bit of filter.h - the numbers run consequtively:

/* Operations - f_srcop, f_dstop */
#define OP_NONE 0
#define OP_EQ   1
#define OP_GT   2
#define OP_LT   3

The following patch seems to fix it:
-------------------------------------------------------------------------
How-To-Repeat: 
Start ppp and say:
set filter in 9 deny tcp dst lt 1024
Comment 1 ru freebsd_committer freebsd_triage 1999-09-20 09:28:47 UTC
Responsible Changed
From-To: freebsd-bugs->brian

Over to the maintainer. 
Comment 2 Brian Somers freebsd_committer freebsd_triage 1999-09-21 02:02:15 UTC
State Changed
From-To: open->closed

Patch applied to -current, thanks.