On Sun, Jul 7, 2019 at 1:13 AM Christoph Paasch <[email protected]> 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 <[email protected]> > 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 <[email protected]> > ---
Signed-off-by: Eric Dumazet <[email protected]> I am sure other fields miss their zeroing as well.
