summaryrefslogtreecommitdiff
path: root/usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate
diff options
context:
space:
mode:
authorKenjiro Cho <kjc@cvs.openbsd.org>2001-06-27 18:23:37 +0000
committerKenjiro Cho <kjc@cvs.openbsd.org>2001-06-27 18:23:37 +0000
commit77495dfc56dcd9fa3f83095f0c6e02d31e3e62ab (patch)
treea54e11370c1ed886374557f82f27156196a46ba8 /usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate
parent54fed91c5c2a712e95e1cd420ef821213ea00f3f (diff)
import ALTQ userland tools from KAME.
Diffstat (limited to 'usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate')
-rw-r--r--usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate b/usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate
new file mode 100644
index 00000000000..67f3ebef2f5
--- /dev/null
+++ b/usr.sbin/altq/altqd/altq.conf.samples/hfsc.grate
@@ -0,0 +1,23 @@
+#
+# a simple test config for loopback
+#
+
+#
+# interface bandwidth 45Mbps is arbitrary (it doesn't matter as long as
+# it is bigger than the total guaranteed bandwidth)
+#
+interface pvc0 bandwidth 45M hfsc
+#
+# 50% of the excess bandwidth goes to the default class
+#
+class hfsc pvc0 def_class root pshare 50 default
+#
+# TCP 10Mbps guaranteed rate (no excess bandwidth assigned)
+#
+class hfsc pvc0 tcp_class root grate 10M
+ filter pvc0 tcp_class 0 0 0 0 6
+#
+# UDP 5Mbps guaranteed rate (no excess bandwidth assigned)
+#
+class hfsc pvc0 udp_class root grate 5M
+ filter pvc0 udp_class 0 0 0 0 17