From: Roman Mashak Date: Tue, 20 Mar 2018 18:21:47 +0000 (-0400) Subject: tc: print index, refcnt & bindcnt for nat action X-Git-Tag: v5.0.0~225^2~17 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d64a22f393bb4cdaa8e100f5432b3782257f81b6;p=mirror_iproute2.git tc: print index, refcnt & bindcnt for nat action Signed-off-by: Roman Mashak --- diff --git a/tc/m_nat.c b/tc/m_nat.c index 1e4ff51f..f6e37395 100644 --- a/tc/m_nat.c +++ b/tc/m_nat.c @@ -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; }