summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-01 08:17:40 +0100
committerThomas Graf <tgraf@suug.ch>2010-11-01 08:17:40 +0100
commit4267d8f336b11e8fbbf1a4b54499ee19012b1b28 (patch)
tree4349cb1f09cc204f50a2555565359d486d2ce694 /etc
parent7903d6ab4bc54421463517a116e93eef2448e92c (diff)
downloadlibnl-4267d8f336b11e8fbbf1a4b54499ee19012b1b28.tar.gz
classid auto generation if provided tc name does not exist
Manually editing etc/libnl/classid before adding tc objects is a pain. This patch adds code to attempt auto generating a unique tc id which will then be assigned to the provided name and added to the classid file. This will make the following commands work with prior definitions of the names "top" and "test" sudo sbin/nl-qdisc-add --dev eth0 --parent root --id top htb sudo sbin/nl-class-add --dev eth0 --parent top --id test htb --rate 100mbit It will generate the following ids automatically: 4001: top 4001:1 test
Diffstat (limited to 'etc')
-rw-r--r--etc/classid11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/classid b/etc/classid
index 76a11f2..2203243 100644
--- a/etc/classid
+++ b/etc/classid
@@ -32,5 +32,14 @@ ffff:ffff root
ffff:fff1 ingress
#
-# List your classid definitions below:
+# List your classid definitions here:
#
+
+
+
+###############################################################################
+# List of auto-generated classids
+#
+# DO NOT ADD CLASSID DEFINITIONS BELOW THIS LINE
+#
+# <CLASSID> <NAME>