iproute2/include
Vadim Kochan 4612d04d6b tc class: Show class names from file
It is possible to use class names from file /etc/iproute2/cls_names
which tc will use when showing class info:

    # tc/tc -nm class show dev lo
	class htb 1:10 parent 1:1 leaf 10: prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
	class htb 1:1 root rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
	class htb web#1:20 parent 1:1 leaf 20: prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
	class htb 1:2 root rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
	class htb 1:30 parent 1:1 leaf 30: prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
	class htb voip#1:40 parent 1:2 leaf 40: prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
	class htb 1:50 parent 1:2 leaf 50: prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
	class htb 1:60 parent 1:2 leaf 60: prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b

or to specify via file path:

    # tc/tc -nm -cf /tmp/cls_names class show dev lo

Class names file contains simple "maj:min  name" structure:

1:20    web
1:40    voip

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
2015-03-15 12:27:40 -07:00
..
libiptc iproute2: Support IFF_LOWER_UP and IFF_DORMANT 2007-06-19 16:40:40 -07:00
linux update headers to 3.20-rc1 2015-02-20 16:58:45 -08:00
netinet ss: report ecnseen 2011-11-23 14:51:54 -08:00
SNAPSHOT.h v3.19.0 2015-02-10 15:14:32 -08:00
dlfcn.h Fix build when shared libraries are disabled 2013-03-13 08:29:59 -07:00
hlist.h ll_map: add name and index hash 2013-03-28 14:57:28 -07:00
ip6tables.h Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iptables.h Fix compilation error of m_ipt.c with -Werror enabled 2013-02-26 17:35:26 -08:00
iptables_common.h fix build warnings 2007-06-20 10:55:18 -07:00
libgenl.h iproute2: GENL: merge GENL_REQUEST and GENL_INITIALIZER 2012-09-17 15:46:45 -07:00
libnetlink.h ipnetns: allow to get and set netns ids 2015-02-21 16:54:53 -08:00
ll_map.h cleanup warnings 2014-08-04 10:30:35 -07:00
names.h tc class: Show class names from file 2015-03-15 12:27:40 -07:00
namespace.h lib: Exec func on each netns 2015-02-05 10:28:19 -08:00
rt_names.h ss: Identify more netlink protocol names 2014-11-29 11:13:38 -08:00
rtm_map.h (Logical change 1.3) 2004-04-15 20:56:59 +00:00
utils.h lib utils: Use helpers to get AF bit/byte len 2015-03-15 12:15:19 -07:00
xt-internal.h Breakage noticed when debian upgraded to xtables (iptables > 1.4.1) 2009-02-19 09:02:13 -08:00