summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-03-11 11:05:12 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-03-11 11:05:12 +0000
commitcd9d49a2cfd1a7f43233b2bdd5de5f02035caa29 (patch)
tree4aae0e9259cf3fd3b202b34fcf90d57feecf1594 /regress/sbin/pfctl
parenta4dbdbef5e5c1dda1c17cc6eacafe3e3757833b3 (diff)
test queue ID assignment with cbq
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfaltq2.in6
-rw-r--r--regress/sbin/pfctl/pfaltq2.ok20
3 files changed, 28 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 3a3960f835b..1fcee0f5937 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.111 2003/03/11 10:57:11 henning Exp $
+# $OpenBSD: Makefile,v 1.112 2003/03/11 11:05:11 henning Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -19,7 +19,7 @@ PFSIMPLE=1 2
PFSETUP=1 2 3
PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
PFLOAD+=30 31 32 34 36 38 39 40 44 46 47 49 54 56
-PFALTQ=1
+PFALTQ=1 2
# disabled; no altq in anchors
# PFLOAD+=33 35 37 42 43 45 51 58 59
# disabled; no table def in anchors
diff --git a/regress/sbin/pfctl/pfaltq2.in b/regress/sbin/pfctl/pfaltq2.in
new file mode 100644
index 00000000000..17fc58704e5
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq2.in
@@ -0,0 +1,6 @@
+altq on { lo0 tun0 } tbrsize 1824 cbq bandwidth 10Mb queue { one two }
+queue one bandwidth 10% cbq(default)
+queue two bandwidth 90% { three four}
+queue three bandwidth 50%
+queue four bandwidth 40%
+
diff --git a/regress/sbin/pfctl/pfaltq2.ok b/regress/sbin/pfctl/pfaltq2.ok
new file mode 100644
index 00000000000..78eb4e70f69
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq2.ok
@@ -0,0 +1,20 @@
+queue root_lo0 bandwidth 10Mb priority 0 cbq( wrr root ) {one, two}
+[ qid=4294967294 ifname=lo0 ifbandwidth=10Mb ]
+queue one bandwidth 1Mb cbq( default )
+[ qid=4294967293 ifname=lo0 ifbandwidth=10Mb ]
+queue two bandwidth 9Mb {three, four}
+[ qid=1 ifname=lo0 ifbandwidth=10Mb ]
+queue three bandwidth 4.50Mb
+[ qid=2 ifname=lo0 ifbandwidth=10Mb ]
+queue four bandwidth 3.60Mb
+[ qid=3 ifname=lo0 ifbandwidth=10Mb ]
+queue root_tun0 bandwidth 10Mb priority 0 cbq( wrr root ) {one, two}
+[ qid=4294967294 ifname=tun0 ifbandwidth=10Mb ]
+queue one bandwidth 1Mb cbq( default )
+[ qid=4294967293 ifname=tun0 ifbandwidth=10Mb ]
+queue two bandwidth 9Mb {three, four}
+[ qid=1 ifname=tun0 ifbandwidth=10Mb ]
+queue three bandwidth 4.50Mb
+[ qid=2 ifname=tun0 ifbandwidth=10Mb ]
+queue four bandwidth 3.60Mb
+[ qid=3 ifname=tun0 ifbandwidth=10Mb ]