Re: [PATCH net] tcp: Reset bytes_acked and bytes_received when disconnecting

2019-07-08 Thread David Miller
From: Christoph Paasch 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 > Fixes: 0df48c

Re: [PATCH net] tcp: Reset bytes_acked and bytes_received when disconnecting

2019-07-08 Thread Eric Dumazet
On Sun, Jul 7, 2019 at 1:13 AM Christoph Paasch wrote: > > 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 > Fixes: 0df48c26d841

[PATCH net] tcp: Reset bytes_acked and bytes_received when disconnecting

2019-07-06 Thread Christoph Paasch
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 Fixes: 0df48c26d841 ("tcp: add tcpi_bytes_acked to tcp_info") Fixes: bdd1f9edacb5 ("tcp: