]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: print index, refcnt & bindcnt for nat action
authorRoman Mashak <mrv@mojatatu.com>
Tue, 20 Mar 2018 18:21:47 +0000 (14:21 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 28 Mar 2018 00:00:32 +0000 (17:00 -0700)
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
tc/m_nat.c

index 1e4ff51fe75aea6bd815928ac8311a619bfb76d1..f6e373957c1ba6fd9a047aeab033239c89e4e34c 100644 (file)
@@ -169,6 +169,9 @@ print_nat(struct action_util *au, FILE * f, struct rtattr *arg)
                format_host_r(AF_INET, 4, &sel->new_addr, buf2, sizeof(buf2)));
        print_action_control(f, " ", sel->action, "");
 
+       fprintf(f, "\n\t index %u ref %d bind %d",
+               sel->index, sel->refcnt, sel->bindcnt);
+
        if (show_stats) {
                if (tb[TCA_NAT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_NAT_TM]);
@@ -177,6 +180,8 @@ print_nat(struct action_util *au, FILE * f, struct rtattr *arg)
                }
        }
 
+       fprintf(f, "\n");
+
        return 0;
 }