From 19f68914c4d3f898656444dbf65b495c83513e31 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 14 Apr 2003 15:14:15 +0000 Subject: test realtime service curve spec --- regress/sbin/pfctl/Makefile | 4 ++-- regress/sbin/pfctl/pfaltq13.in | 9 +++++++++ regress/sbin/pfctl/pfaltq13.ok | 8 ++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 regress/sbin/pfctl/pfaltq13.in create mode 100644 regress/sbin/pfctl/pfaltq13.ok (limited to 'regress/sbin/pfctl') 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 ] -- cgit v1.2.3