summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1999-07-26 11:18:12 +0000
committerbrian <brian@cvs.openbsd.org>1999-07-26 11:18:12 +0000
commit5fc5357816e696990c15bc4b5fe0042d5d46cfb1 (patch)
treeeb477e453e9fc7e836bfc48ef72e3f949170c13f /usr.sbin
parent210eb6f5d8a2a32f61e46eb7edfad4fc2865c178 (diff)
Fix an off-by-one error and correct the man page WRT clearing
filters. Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/filter.c4
-rw-r--r--usr.sbin/ppp/ppp/ppp.88
2 files changed, 8 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ppp/filter.c b/usr.sbin/ppp/ppp/filter.c
index 19868a8776f..d9f646591d8 100644
--- a/usr.sbin/ppp/ppp/filter.c
+++ b/usr.sbin/ppp/ppp/filter.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: filter.c,v 1.6 1999/06/23 16:49:03 brian Exp $
+ * $Id: filter.c,v 1.7 1999/07/26 11:18:11 brian Exp $
*
* TODO: Shoud send ICMP error message when we discard packets.
*/
@@ -306,7 +306,7 @@ Parse(struct ipcp *ipcp, int argc, char const *const *argv,
struct filterent filterdata;
val = strtol(*argv, &wp, 0);
- if (*argv == wp || val > MAXFILTERS) {
+ if (*argv == wp || val >= MAXFILTERS) {
log_Printf(LogWARN, "Parse: invalid filter number.\n");
return (0);
}
diff --git a/usr.sbin/ppp/ppp/ppp.8 b/usr.sbin/ppp/ppp/ppp.8
index 2a13ebdf869..9a23f6641bb 100644
--- a/usr.sbin/ppp/ppp/ppp.8
+++ b/usr.sbin/ppp/ppp/ppp.8
@@ -1,4 +1,4 @@
-.\" $Id: ppp.8,v 1.58 1999/07/17 10:33:53 brian Exp $
+.\" $Id: ppp.8,v 1.59 1999/07/26 11:18:11 brian Exp $
.Dd 20 September 1995
.nr XX \w'\fC00'
.Dt PPP 8
@@ -1421,7 +1421,7 @@ or
is a numeric value between
.Sq 0
and
-.Sq 19
+.Sq 39
specifying the rule number. Rules are specified in numeric order according to
.Ar rule-no ,
but only if rule
@@ -1435,6 +1435,10 @@ or
.Sq deny .
If a given packet
matches the rule, the associated action is taken immediately.
+.Ar Action
+can also be specified as
+.Sq clear
+to clear the action associated with that particular rule.
.It
.Op Ar src_addr Ns Op / Ns Ar width
and