]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: Report MSS from internal TCP information
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 30 Jul 2012 19:51:07 +0000 (20:51 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 31 Jul 2012 21:06:51 +0000 (14:06 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
misc/ss.c

index cf529ef7bb49537890ed95ce8a1f9abcabe96a2e..8ad830bf5b5652648ef72882e07cdc5ccf76ddc5 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1392,6 +1392,8 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r)
                               (double)info->tcpi_rttvar/1000);
                if (info->tcpi_ato)
                        printf(" ato:%g", (double)info->tcpi_ato/1000);
+               if (info->tcpi_snd_mss)
+                       printf(" mss:%d", info->tcpi_snd_mss);
                if (info->tcpi_snd_cwnd != 2)
                        printf(" cwnd:%d", info->tcpi_snd_cwnd);
                if (info->tcpi_snd_ssthresh < 0xFFFF)