From: Ben Hutchings Date: Mon, 30 Jul 2012 19:51:07 +0000 (+0100) Subject: ss: Report MSS from internal TCP information X-Git-Tag: v3.5.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d35434771b3f943b03949db2fcde3f5fc086de7;p=thirdparty%2Fiproute2.git ss: Report MSS from internal TCP information Signed-off-by: Ben Hutchings --- diff --git a/misc/ss.c b/misc/ss.c index cf529ef7b..8ad830bf5 100644 --- 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)