Files
linux/net/ipv4
Christoph Paasch 01dd3672a1 tcp: Reset bytes_acked and bytes_received when disconnecting
[ Upstream commit e858faf556 ]

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@google.com>
Fixes: 0df48c26d8 ("tcp: add tcpi_bytes_acked to tcp_info")
Fixes: bdd1f9edac ("tcp: add tcpi_bytes_received to tcp_info")
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04 09:33:35 +02:00
..
2018-04-13 19:48:32 +02:00
2019-03-13 14:04:53 -07:00
2016-09-21 00:23:01 -04:00
2019-04-17 08:36:45 +02:00
2019-06-17 19:53:33 +02:00
2017-05-14 14:00:21 +02:00
2016-09-01 14:09:01 -07:00
2015-09-17 17:18:37 -07:00
2013-05-31 17:19:05 -07:00