summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-10-19 16:31:23 +0200
committerThomas Graf <tgraf@suug.ch>2010-10-19 16:31:23 +0200
commit757592ec1b1d3c70a325ae997adb94009589c5a6 (patch)
tree40aabb22d05207a6e07a7a05f6d034dc06a0f038 /etc
parentfa89403149a59ed18015713f517a5cc9356caffd (diff)
downloadlibnl-757592ec1b1d3c70a325ae997adb94009589c5a6.tar.gz
classid database
A database to resolve qdisc/class names to classid values and vice versa. The function rtnl_tc_handle2str() and rtnl_tc_str2handle() will resolve names automatically. A CLI based tool nl-classid-lookup is provided to integrate the database into existing iproute2 scripts.
Diffstat (limited to 'etc')
-rw-r--r--etc/classid36
1 files changed, 36 insertions, 0 deletions
diff --git a/etc/classid b/etc/classid
new file mode 100644
index 00000000..76a11f2a
--- /dev/null
+++ b/etc/classid
@@ -0,0 +1,36 @@
+###############################################################################
+#
+# ClassID <-> Name Translation Table
+#
+# This file can be used to assign names to classids for easier reference
+# in all libnl tools.
+#
+# Format:
+# <MAJ:> <NAME> # qdisc definition
+# <MAJ:MIN> <NAME> # class deifnition
+# <NAME:MIN> <NAME> # class definition referencing an
+# existing qdisc definition.
+#
+# Example:
+# 1: top # top -> 1:0
+# top:1 interactive # interactive -> 1:1
+# top:2 www # www -> 1:2
+# top:3 bulk # bulk -> 1:3
+# 2:1 test_class # test_class -> 2:1
+#
+# Illegal Example:
+# 30:1 classD
+# classD:2 invalidClass # classD refers to a class, not a qdisc
+#
+###############################################################################
+
+# <CLASSID> <NAME>
+
+# Reserved default classids
+0:0 none
+ffff:ffff root
+ffff:fff1 ingress
+
+#
+# List your classid definitions below:
+#