libnl/lib/route
Thomas Graf 4267d8f336 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
2010-11-01 08:17:40 +01:00
..
cls Support for meta match 2010-10-31 23:13:01 +01:00
link Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
sch Unified TC attributes interface 2010-10-26 12:54:33 +02:00
.gitignore Let git ignore generated pktloc source files 2010-07-03 15:56:07 +02:00
addr.c Remove NL_DUMP_ENV code 2010-10-20 15:32:45 +02:00
class.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00
class_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
class_obj.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00
classid.c classid auto generation if provided tc name does not exist 2010-11-01 08:17:40 +01:00
cls.c Tons of ematch work 2010-10-29 00:20:42 +02:00
cls_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cls_obj.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00
link.c Support for 64bit link counters IFLA_STATS64 2010-10-29 01:58:27 +02:00
neigh.c Support neighbour flag NTF_USE 2010-10-29 02:00:53 +02:00
neightbl.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
nexthop.c Remove NL_DUMP_ENV code 2010-10-20 15:32:45 +02:00
pktloc.c Extended pktloc to support nbyte locations for ipv6, etc. 2010-10-29 00:14:34 +02:00
pktloc_grammar.l Packet location updates 2010-10-27 01:21:50 +02:00
pktloc_syntax.y Extended pktloc to support nbyte locations for ipv6, etc. 2010-10-29 00:14:34 +02:00
qdisc.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00
qdisc_api.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
qdisc_obj.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00
route.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
route_obj.c Remove NL_DUMP_ENV code 2010-10-20 15:32:45 +02:00
route_utils.c Support RT_TABLE_COMPAT 2010-10-29 02:06:14 +02:00
rtnl.c restructure module documentation order 2008-12-10 18:12:30 +01:00
rule.c routing rules: adapt to unified routing rules 2010-10-29 12:48:46 +02:00
tc.c Unified TC attributes interface 2010-10-26 12:54:33 +02:00