diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-10-19 16:31:23 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-10-19 16:31:23 +0200 |
commit | 757592ec1b1d3c70a325ae997adb94009589c5a6 (patch) | |
tree | 40aabb22d05207a6e07a7a05f6d034dc06a0f038 /man | |
parent | fa89403149a59ed18015713f517a5cc9356caffd (diff) | |
download | libnl-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 'man')
-rw-r--r-- | man/Makefile.am | 3 | ||||
-rw-r--r-- | man/nl-classid-lookup.8 | 48 |
2 files changed, 51 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..0d7ad7a --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,3 @@ +# -*- Makefile -*- + +dist_man8_MANS = nl-classid-lookup.8 diff --git a/man/nl-classid-lookup.8 b/man/nl-classid-lookup.8 new file mode 100644 index 0000000..f447461 --- /dev/null +++ b/man/nl-classid-lookup.8 @@ -0,0 +1,48 @@ +.TH nl\-classid\-lookup 8 "19 October 2010" "libnl" +.LO 1 +.SH NAME +nl\-classid\-lookup - Lookup classid definitions +.SH SYNOPSIS +.B nl\-classid\-lookup +.RB [ \-hv ] +.RB [ \-r ] +.I name + +.SH DESCRIPTION +.PP +nl\-classid\-lookup searches the classid database for a matching entry. It is used +to resolve qdisc/class names to classid values and vice versa. + +.SH OPTIONS +.TP +.BR \-\^h " or " \-\-help +Print help text to console and exit. +.TP +.BR \-\^v " or " \-\-version +Print versioning information to console and exit. +.TP +.BR \-\^r " or " \-\-reverse +Do a reverse lookup. Lookup a classid and print its name. + +.SH USAGE +.PP +Resolve the qdisc/class name "interactive": +.PP +.RS +# nl\-classid\-lookup interactive +.RE +.PP +Lookup the name of classid 1:2: +.PP +.RS +# nl\-classid\-lookup -r 1:2 +.RE + +.SH FILES +.PP +/etc/libnl/classid + +.SH AUTHOR +.PP +Thomas Graf is the original author and current maintainer of libnl and +libnl tools. Many people have contributed to it since. |