ss: add missing path MTU parameter
v3: Rebase and use out() instead of printf(). v2: Print the path MTU immediately after the MSS, as it is easier to parse for humans (suggested by Neal Cardwell). Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
2c6aaad949
commit
3d791a326b
|
|
@ -184,6 +184,10 @@ max segment size
|
||||||
congestion window size
|
congestion window size
|
||||||
.P
|
.P
|
||||||
.TP
|
.TP
|
||||||
|
.B pmtu:<pmtu>
|
||||||
|
path MTU value
|
||||||
|
.P
|
||||||
|
.TP
|
||||||
.B ssthresh:<ssthresh>
|
.B ssthresh:<ssthresh>
|
||||||
tcp congestion window slow start threshold
|
tcp congestion window slow start threshold
|
||||||
.P
|
.P
|
||||||
|
|
|
||||||
|
|
@ -790,6 +790,7 @@ struct tcpstat {
|
||||||
int mss;
|
int mss;
|
||||||
int rcv_mss;
|
int rcv_mss;
|
||||||
int advmss;
|
int advmss;
|
||||||
|
unsigned int pmtu;
|
||||||
unsigned int cwnd;
|
unsigned int cwnd;
|
||||||
unsigned int lastsnd;
|
unsigned int lastsnd;
|
||||||
unsigned int lastrcv;
|
unsigned int lastrcv;
|
||||||
|
|
@ -2360,6 +2361,8 @@ static void tcp_stats_print(struct tcpstat *s)
|
||||||
|
|
||||||
if (s->mss)
|
if (s->mss)
|
||||||
out(" mss:%d", s->mss);
|
out(" mss:%d", s->mss);
|
||||||
|
if (s->pmtu)
|
||||||
|
out(" pmtu:%u", s->pmtu);
|
||||||
if (s->rcv_mss)
|
if (s->rcv_mss)
|
||||||
out(" rcvmss:%d", s->rcv_mss);
|
out(" rcvmss:%d", s->rcv_mss);
|
||||||
if (s->advmss)
|
if (s->advmss)
|
||||||
|
|
@ -2707,6 +2710,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r,
|
||||||
s.reordering = info->tcpi_reordering;
|
s.reordering = info->tcpi_reordering;
|
||||||
s.rcv_ssthresh = info->tcpi_rcv_ssthresh;
|
s.rcv_ssthresh = info->tcpi_rcv_ssthresh;
|
||||||
s.cwnd = info->tcpi_snd_cwnd;
|
s.cwnd = info->tcpi_snd_cwnd;
|
||||||
|
s.pmtu = info->tcpi_pmtu;
|
||||||
|
|
||||||
if (info->tcpi_snd_ssthresh < 0xFFFF)
|
if (info->tcpi_snd_ssthresh < 0xFFFF)
|
||||||
s.ssthresh = info->tcpi_snd_ssthresh;
|
s.ssthresh = info->tcpi_snd_ssthresh;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue