summaryrefslogtreecommitdiff
path: root/misc/ss.c
diff options
context:
space:
mode:
authorAndrea Claudi <aclaudi@redhat.com>2020-11-18 15:24:18 +0100
committerStephen Hemminger <stephen@networkplumber.org>2020-12-15 13:59:13 -0800
commitc8faeca5ad788bf0ad7a427213616b353e7a7e7f (patch)
tree7d0f4f7a46243a60721fe264fec6f3a2eecef32b /misc/ss.c
parent0d78e8eabf865b47f98adae7c453884bdc19c2f2 (diff)
downloadiproute2-c8faeca5ad788bf0ad7a427213616b353e7a7e7f.tar.gz
ss: mptcp: fix add_addr_accepted stat print
add_addr_accepted value is not printed if add_addr_signal value is 0. Fix this properly looking for add_addr_accepted value, instead. Fixes: 9c3be2c0eee01 ("ss: mptcp: add msk diag interface support") Signed-off-by: Andrea Claudi <aclaudi@redhat.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'misc/ss.c')
-rw-r--r--misc/ss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ss.c b/misc/ss.c
index 77e1847e..0593627b 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -3136,7 +3136,7 @@ static void mptcp_stats_print(struct mptcp_info *s)
out(" subflows:%d", s->mptcpi_subflows);
if (s->mptcpi_add_addr_signal)
out(" add_addr_signal:%d", s->mptcpi_add_addr_signal);
- if (s->mptcpi_add_addr_signal)
+ if (s->mptcpi_add_addr_accepted)
out(" add_addr_accepted:%d", s->mptcpi_add_addr_accepted);
if (s->mptcpi_subflows_max)
out(" subflows_max:%d", s->mptcpi_subflows_max);