On Sun, Jul 7, 2019 at 1:13 AM Christoph Paasch <cpaa...@apple.com> 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 <eduma...@google.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 <cpaa...@apple.com>
> ---


Signed-off-by: Eric Dumazet <eduma...@google.com>

I am sure other fields miss their zeroing as well.

Reply via email to