]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/tc_filter.c
iproute2: gnet_stats
[mirror_iproute2.git] / tc / tc_filter.c
index af663ddf936c4d0a4aa71e9c2e862b667a55bae7..0c63a9028300940e89bd4816d019cc56a7dbe608 100644 (file)
@@ -254,8 +254,8 @@ static int print_filter(const struct sockaddr_nl *who,
        }
        fprintf(fp, "\n");
 
-       if (show_stats && tb[TCA_STATS]) {
-               print_tcstats_attr(fp, tb[TCA_STATS]);
+       if (show_stats && (tb[TCA_STATS] || tb[TCA_STATS2])) {
+               print_tcstats_attr(fp, tb, " ", NULL);
                fprintf(fp, "\n");
        }