commit | 9bea14ff6b64f3fe56af2d93ca70ac56b355027e | [log] [tgz] |
---|---|---|
author | Nigel Kukard <nkukard@lbsd.net> | Wed Oct 30 18:44:58 2013 +0000 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Wed Oct 30 16:37:07 2013 -0700 |
tree | 78539ee8f7b20b4952c8665b2f313d60ff632afd | |
parent | aa574cd60e57d6a31b4d433e0b09bfacd2cb79d1 [diff] |
Fix tc stats when using -batch mode There are two global variables in tc/tc_class.c: __u32 filter_qdisc; __u32 filter_classid; These are not re-initialized for each line received in -batch mode: class show dev eth0 parent 1: classid 1:1 class show dev eth0 parent 1: classid 1:1 Error: duplicate "classid": "1:1" is the second value. This patch fixes the issue by initializing the two globals when we enter print_class(). Signed-off-by: Nigel Kukard <nkukard@lbsd.net>