]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ss: mptcp: fix add_addr_accepted stat print
authorAndrea Claudi <aclaudi@redhat.com>
Wed, 18 Nov 2020 14:24:18 +0000 (15:24 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 15 Dec 2020 21:59:13 +0000 (13:59 -0800)
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>
misc/ss.c

index 77e1847ee2473044162a79cdba41ac44f9214896..0593627b77e3164dc1efe899e16be4c90002579f 100644 (file)
--- 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);