summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/pfaltq1.in2
-rw-r--r--regress/sbin/pfctl/pfaltq2.in3
-rw-r--r--regress/sbin/pfctl/pfaltq3.in4
-rw-r--r--regress/sbin/pfctl/pfaltq4.in2
4 files changed, 11 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pfaltq1.in b/regress/sbin/pfctl/pfaltq1.in
index 739d32c0236..63e959e7e60 100644
--- a/regress/sbin/pfctl/pfaltq1.in
+++ b/regress/sbin/pfctl/pfaltq1.in
@@ -1,3 +1,5 @@
+#queue id assignment with priq
+
altq on { lo0 tun0 } tbrsize 1824 priq bandwidth 10Mb queue { one two }
queue one priority 1 priq(default)
queue two priority 15
diff --git a/regress/sbin/pfctl/pfaltq2.in b/regress/sbin/pfctl/pfaltq2.in
index 17fc58704e5..b9250d4fd17 100644
--- a/regress/sbin/pfctl/pfaltq2.in
+++ b/regress/sbin/pfctl/pfaltq2.in
@@ -1,3 +1,6 @@
+#queue id assignment with cbq: two same named queues on different interfaces
+#must have the same qid
+
altq on { lo0 tun0 } tbrsize 1824 cbq bandwidth 10Mb queue { one two }
queue one bandwidth 10% cbq(default)
queue two bandwidth 90% { three four}
diff --git a/regress/sbin/pfctl/pfaltq3.in b/regress/sbin/pfctl/pfaltq3.in
index 70af0ebbb3e..5ff58aff815 100644
--- a/regress/sbin/pfctl/pfaltq3.in
+++ b/regress/sbin/pfctl/pfaltq3.in
@@ -1,3 +1,7 @@
+# more complicated case to provoke queue id assignment errors:
+# -two same named queues must have same qid on all interfaces
+# -two differently named queues must not share a qid, even on different ifs
+
altq on lo0 tbrsize 1824 bandwidth 10Mb cbq queue { eins zwei drei }
altq on tun0 tbrsize 1824 bandwidth 33600b cbq queue { vier zwei fuenf }
queue eins bandwidth 10% cbq(default)
diff --git a/regress/sbin/pfctl/pfaltq4.in b/regress/sbin/pfctl/pfaltq4.in
index 50ddc2303ad..2bf5fb2606b 100644
--- a/regress/sbin/pfctl/pfaltq4.in
+++ b/regress/sbin/pfctl/pfaltq4.in
@@ -1,3 +1,5 @@
+# test two different named queues don't get the same qid on different interfaces
+
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%