diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-10-19 14:31:23 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-10-19 14:31:23 (GMT) |
commit | 757592ec1b1d3c70a325ae997adb94009589c5a6 (patch) | |
tree | 40aabb22d05207a6e07a7a05f6d034dc06a0f038 /include | |
parent | fa89403149a59ed18015713f517a5cc9356caffd (diff) | |
download | libnl-757592ec1b1d3c70a325ae997adb94009589c5a6.zip libnl-757592ec1b1d3c70a325ae997adb94009589c5a6.tar.gz libnl-757592ec1b1d3c70a325ae997adb94009589c5a6.tar.bz2 |
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 'include')
-rw-r--r-- | include/netlink-local.h | 1 | ||||
-rw-r--r-- | include/netlink/route/tc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink-local.h b/include/netlink-local.h index e0c79db..1e5fc0e 100644 --- a/include/netlink-local.h +++ b/include/netlink-local.h @@ -28,6 +28,7 @@ #include <inttypes.h> #include <assert.h> #include <limits.h> +#include <search.h> #include <arpa/inet.h> #include <netdb.h> diff --git a/include/netlink/route/tc.h b/include/netlink/route/tc.h index 3cb876f..84c766f 100644 --- a/include/netlink/route/tc.h +++ b/include/netlink/route/tc.h @@ -53,6 +53,7 @@ extern int rtnl_tc_build_rate_table(uint32_t *, uint8_t, uint8_t, int, int); /* TC Handle Translations */ +extern int rtnl_tc_read_classid_file(void); extern char * rtnl_tc_handle2str(uint32_t, char *, size_t); extern int rtnl_tc_str2handle(const char *, uint32_t *); |