summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-04-14 15:14:15 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-04-14 15:14:15 +0000
commit19f68914c4d3f898656444dbf65b495c83513e31 (patch)
treed5adbbf423606d492e3be6b24b00404a06a5e838 /regress/sbin/pfctl
parentd787e9698d512a27483973f725c07429bad7d2d8 (diff)
test realtime service curve spec
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfaltq13.in9
-rw-r--r--regress/sbin/pfctl/pfaltq13.ok8
3 files changed, 19 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index dc54f8ca47a..2f96a6d490e 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.128 2003/04/13 23:49:12 henning Exp $
+# $OpenBSD: Makefile,v 1.129 2003/04/14 15:14:14 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 60 61
-PFALTQ=1 2 3 4 5 6 7 8 9 10 11 12
+PFALTQ=1 2 3 4 5 6 7 8 9 10 11 12 13
# disabled; no altq in anchors
# PFLOAD+=33 35 37 42 43 45 51 58 59 62
# disabled; no table def in anchors
diff --git a/regress/sbin/pfctl/pfaltq13.in b/regress/sbin/pfctl/pfaltq13.in
new file mode 100644
index 00000000000..b9f30f8fabe
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq13.in
@@ -0,0 +1,9 @@
+# realtime service curve
+
+altq on lo0 tbrsize 1824 bandwidth 10Mb hfsc queue { eins zwei drei }
+queue eins bandwidth 10% hfsc(default realtime(20% 20 5%))
+queue zwei bandwidth 40% hfsc(linkshare 35% realtime 5Mb)
+queue drei bandwidth 50% hfsc(realtime(60% 20 40%) \
+ upperlimit(65% 10 45%))
+
+
diff --git a/regress/sbin/pfctl/pfaltq13.ok b/regress/sbin/pfctl/pfaltq13.ok
new file mode 100644
index 00000000000..7e4ec44cf41
--- /dev/null
+++ b/regress/sbin/pfctl/pfaltq13.ok
@@ -0,0 +1,8 @@
+queue root_lo0 bandwidth 10Mb priority 0 hfsc( linkshare 10Mb ) {eins, zwei, drei}
+[ qid=1 ifname=lo0 ifbandwidth=10Mb ]
+queue eins bandwidth 1Mb hfsc( default realtime(2Mb 20ms 500Kb) linkshare 1Mb )
+[ qid=2 ifname=lo0 ifbandwidth=10Mb ]
+queue zwei bandwidth 4Mb hfsc( realtime 5Mb linkshare 3.50Mb )
+[ qid=3 ifname=lo0 ifbandwidth=10Mb ]
+queue drei bandwidth 5Mb hfsc( realtime(6Mb 20ms 4Mb) linkshare 5Mb upperlimit(6.50Mb 10ms 4.50Mb) )
+[ qid=4 ifname=lo0 ifbandwidth=10Mb ]