]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ss: initialize 'fackets' member of tcpstat structure
authorRoman Mashak <mrv@mojatatu.com>
Wed, 18 Oct 2017 19:44:01 +0000 (15:44 -0400)
committerStephen Hemminger <sthemmin@microsoft.com>
Mon, 23 Oct 2017 12:43:11 +0000 (14:43 +0200)
'fackets' has never been initialized with kernel extracted information, thus
never really printed.

Signed-off-by: Roman Mashak <mrv@mojatatu.com>
misc/ss.c

index b5c6bbc05766e40c143e23cb3a1b36ee6bd9e1aa..dfb438f9162c50dbe204ec938254fafe4ab1027e 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -2225,6 +2225,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r,
                s.retrans_total  = info->tcpi_total_retrans;
                s.lost           = info->tcpi_lost;
                s.sacked         = info->tcpi_sacked;
+               s.fackets        = info->tcpi_fackets;
                s.reordering     = info->tcpi_reordering;
                s.rcv_space      = info->tcpi_rcv_space;
                s.cwnd           = info->tcpi_snd_cwnd;