summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-11-28 14:43:39 +0000
committerhenning <henning@openbsd.org>2002-11-28 14:43:39 +0000
commit0d56a256d24ed32708872af19d5154175a1b46f0 (patch)
treeaf3ab4de4efba538dcc97c8da1ef3a5ad0073838
parentSync with pciide(4): mention Promise PDC20275 PDC20277 and (diff)
downloadwireguard-openbsd-0d56a256d24ed32708872af19d5154175a1b46f0.tar.xz
wireguard-openbsd-0d56a256d24ed32708872af19d5154175a1b46f0.zip
allow qlimit on altq spec
-rw-r--r--sbin/pfctl/parse.y13
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 7cf57b6b96b..1ca00846fb9 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.224 2002/11/28 12:14:24 mcbride Exp $ */
+/* $OpenBSD: parse.y,v 1.225 2002/11/28 14:43:39 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -522,8 +522,8 @@ antispoof_iflst : if_item { $$ = $1; }
/* altq stuff */
-altqif : ALTQ interface SCHEDULER schedtype bandwidth tbrsize
- QUEUE qassign {
+altqif : ALTQ interface SCHEDULER schedtype bandwidth qlimit
+ tbrsize QUEUE qassign {
struct pf_altq a;
if (check_rulestate(PFCTL_STATE_QUEUE))
@@ -540,12 +540,13 @@ altqif : ALTQ interface SCHEDULER schedtype bandwidth tbrsize
yyerror("interface bandwidth must be absolute");
YYERROR;
}
- a.tbrsize = $6;
- if ($8 == NULL) {
+ a.qlimit = $6;
+ a.tbrsize = $7;
+ if ($9 == NULL) {
yyerror("no child queues specified");
YYERROR;
}
- if (expand_altq(&a, $2, $8))
+ if (expand_altq(&a, $2, $9))
YYERROR;
}
;