[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190708.193035.1657931859879684675.davem@davemloft.net>
Date: Mon, 08 Jul 2019 19:30:35 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: cpaasch@...le.com
Cc: netdev@...r.kernel.org, edumazet@...gle.com
Subject: Re: [PATCH net] tcp: Reset bytes_acked and bytes_received when
disconnecting
From: Christoph Paasch <cpaasch@...le.com>
Date: Sat, 06 Jul 2019 16:13:07 -0700
> If an app is playing tricks to reuse a socket via tcp_disconnect(),
> bytes_acked/received needs to be reset to 0. Otherwise tcp_info will
> report the sum of the current and the old connection..
>
> Cc: Eric Dumazet <edumazet@...gle.com>
> Fixes: 0df48c26d841 ("tcp: add tcpi_bytes_acked to tcp_info")
> Fixes: bdd1f9edacb5 ("tcp: add tcpi_bytes_received to tcp_info")
> Signed-off-by: Christoph Paasch <cpaasch@...le.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists