tc: non-HTB classes were missed: fixed
Costa Tsaousis (ktsaou) committed
Feb 28, 2016 at 04:53 UTC
54d9ad67e4ab8f47f30871dd015c65ac2dd18ec5
1 file changed
+4
-1
src/plugin_tc.c
+4
-1
@@ -557,7 +557,10 @@ void *tc_main(void *ptr)
557
// clear the last class
558
class = NULL;
559
560
- if(words[1] && words[2] && words[3] && words[4] && (strcmp(words[3], "parent") == 0 || strcmp(words[3], "root") == 0)) {
560
+ // words[1] : class type
561
+ // words[2] : N:XX
562
+ // words[3] : parent or root
563
+ if(words[1] && words[2] && words[3] && (strcmp(words[3], "parent") == 0 || strcmp(words[3], "root") == 0)) {
564
//char *type = words[1]; // the class: htb, fq_codel, etc
565
566
// we are only interested for HTB classes