mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-12-31 11:35:49 +00:00
tc: print index, refcnt & bindcnt for nat action
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
This commit is contained in:
parent
fec62c0ec7
commit
d64a22f393
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user