libnl/include/netlink
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
..
cli classid auto generation if provided tc name does not exist 2010-11-01 08:17:40 +01:00
fib_lookup Rename struct nl_handle to struct nl_sock 2008-05-15 13:26:32 +02:00
genl Generic Netlink multicast groups support 2010-10-14 13:46:02 +02:00
netfilter new function nfnl_queue_msg_send_verdict_payload() 2010-03-10 16:02:01 +01:00
route classid auto generation if provided tc name does not exist 2010-11-01 08:17:40 +01:00
.gitignore ignore more temporary files 2008-05-05 17:13:02 +02:00
addr.h Remove obsolete nla_get_addr() and nla_get_data() 2008-05-14 18:26:47 +02:00
attr.h - Reworked the classifier interface. 2009-09-02 18:31:14 +02:00
cache-api.h Rename struct nl_handle to struct nl_sock 2008-05-15 13:26:32 +02:00
cache.h add user data to change_func_t for caches 2010-10-13 13:41:57 +02:00
data.h Remove obsolete nla_get_addr() and nla_get_data() 2008-05-14 18:26:47 +02:00
errno.h Packet location updates 2010-10-27 01:21:50 +02:00
handlers.h Declare struct ucred in handlers.h and netlink.h 2009-07-20 11:47:22 +02:00
list.h - Reworked the classifier interface. 2009-09-02 18:31:14 +02:00
msg.h Replace NL_KEEP code with proper message reference counting 2008-10-14 19:26:44 +02:00
netlink-compat.h Initial import 2007-09-15 01:28:01 +02:00
netlink-kernel.h Initial import 2007-09-15 01:28:01 +02:00
netlink.h Fix compile warning in nl.c 2010-07-03 15:15:12 +02:00
object-api.h object: fix attribute comparison 2010-04-19 12:51:24 +02:00
object.h nl_object_priv() is inline, so define it in the header 2009-04-16 12:29:13 +02:00
socket.h Generic Netlink multicast groups support 2010-10-14 13:46:02 +02:00
types.h Remove NL_DUMP_ENV code 2010-10-20 15:32:45 +02:00
utils.h Extend nl_time2int() and rename it to nl_str2msec() 2008-06-16 13:54:57 +02:00
version.h.in version.h.in should be in tree not the generated version 2008-04-30 18:52:28 +02:00