diff --git a/misc/ss.c b/misc/ss.c index 0db0a529..aedf10f8 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -769,6 +769,8 @@ struct tcpstat double pacing_rate_max; unsigned long long bytes_acked; unsigned long long bytes_received; + unsigned int segs_out; + unsigned int segs_in; unsigned int unacked; unsigned int retrans; unsigned int retrans_total; @@ -1688,6 +1690,10 @@ static void tcp_stats_print(struct tcpstat *s) printf(" bytes_acked:%llu", s->bytes_acked); if (s->bytes_received) printf(" bytes_received:%llu", s->bytes_received); + if (s->segs_out) + printf(" segs_out:%u", s->segs_out); + if (s->segs_in) + printf(" segs_in:%u", s->segs_in); if (s->dctcp && s->dctcp->enabled) { struct dctcpstat *dctcp = s->dctcp; @@ -1982,6 +1988,8 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r, } s.bytes_acked = info->tcpi_bytes_acked; s.bytes_received = info->tcpi_bytes_received; + s.segs_out = info->tcpi_segs_out; + s.segs_in = info->tcpi_segs_in; tcp_stats_print(&s); if (s.dctcp) free(s.dctcp);