summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-03-11 12:00:08 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-03-11 12:00:08 +0000
commit4ae1418103e60617fd6ac9c850583686e06a81b2 (patch)
tree4a1124e7740ea806d80e740bb1733a35a59bbc06 /regress/sbin/pfctl
parent591b49d1a3f4005ce232622de84720a8f4daa310 (diff)
verify different named queues don't get the same queue id on different
interfaces fails right now
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfaltq4.in5
-rw-r--r--regress/sbin/pfctl/pfaltq4.ok12
3 files changed, 19 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 51fdcea6897..c065f81e7f1 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.113 2003/03/11 11:14:59 henning Exp $
+# $OpenBSD: Makefile,v 1.114 2003/03/11 12:00:07 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 2 3
+PFALTQ=1 2 3 4
# 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/pfaltq4.in b/regress/sbin/pfctl/pfaltq4.in
new file mode 100644
index 00000000000..50ddc2303ad
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq4.in
@@ -0,0 +1,5 @@
+altq on lo0 tbrsize 1824 bandwidth 10Mb cbq queue { bloody germans }
+altq on tun0 tbrsize 1824 bandwidth 10Mb cbq queue { bloody toads }
+queue bloody cbq(default) bandwidth 50%
+queue germans bandwidth 50%
+queue toads bandwidth 50%
diff --git a/regress/sbin/pfctl/pfaltq4.ok b/regress/sbin/pfctl/pfaltq4.ok
new file mode 100644
index 00000000000..11fdce10f69
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq4.ok
@@ -0,0 +1,12 @@
+queue root_lo0 bandwidth 10Mb priority 0 cbq( wrr root ) {bloody, germans}
+[ qid=4294967294 ifname=lo0 ifbandwidth=10Mb ]
+queue bloody bandwidth 5Mb cbq( default )
+[ qid=4294967293 ifname=lo0 ifbandwidth=10Mb ]
+queue germans bandwidth 5Mb
+[ qid=1 ifname=lo0 ifbandwidth=10Mb ]
+queue root_tun0 bandwidth 10Mb priority 0 cbq( wrr root ) {bloody, toads}
+[ qid=4294967294 ifname=tun0 ifbandwidth=10Mb ]
+queue bloody bandwidth 5Mb cbq( default )
+[ qid=4294967293 ifname=tun0 ifbandwidth=10Mb ]
+queue toads bandwidth 5Mb
+[ qid=2 ifname=tun0 ifbandwidth=10Mb ]