Christoph Paasch
e858faf556
tcp: Reset bytes_acked and bytes_received when disconnecting
...
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: 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@apple.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-08 19:29:19 -07:00
..
2019-05-21 12:33:38 -07:00
2019-06-19 17:09:55 +02:00
2019-05-31 08:34:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-05-30 11:26:32 -07:00
2019-07-01 11:31:38 -07:00
2019-06-05 17:37:15 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-04-03 21:50:20 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-06-09 12:47:30 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-29 11:16:28 -07:00
2019-06-19 17:46:57 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-02-08 21:50:15 -08:00
2019-04-08 15:22:40 -07:00
2019-02-26 08:27:05 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-04-01 10:44:58 -07:00
2019-06-26 12:40:10 -07:00
2019-05-25 11:00:50 -07:00
2019-06-18 20:48:45 -04:00
2019-06-05 17:30:29 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-02-01 15:24:13 -08:00
2019-05-30 11:26:32 -07:00
2019-05-07 17:22:09 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:46 +02:00
2019-04-08 09:15:17 +02:00
2019-05-21 10:50:45 +02:00
2019-01-28 11:32:58 +01:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-06-15 18:47:31 -07:00
2019-05-30 11:26:32 -07:00
2019-07-03 11:26:35 -07:00
2019-06-25 12:46:02 -07:00
2019-07-05 16:19:02 -07:00
2019-05-30 11:26:32 -07:00
2019-06-17 10:39:56 -07:00
2019-01-24 22:27:27 -08:00
2019-05-21 10:50:45 +02:00
2019-05-16 01:36:13 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:46:57 -04:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-15 18:47:31 -07:00
2019-06-15 18:47:31 -07:00
2019-05-21 10:50:45 +02:00
2019-05-01 11:47:54 -04:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-06-21 20:58:42 -04:00
2019-05-21 10:50:45 +02:00
2018-09-21 19:37:59 -07:00
2019-05-21 10:50:45 +02:00
2019-06-15 18:47:31 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-07-08 19:29:19 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-01-17 15:01:08 -08:00
2019-06-18 21:38:07 -04:00
2019-05-21 10:50:45 +02:00
2019-06-07 14:46:47 -07:00
2019-05-30 11:26:32 -07:00
2018-09-04 10:26:30 +02:00
2019-05-30 11:26:32 -07:00
2019-04-30 09:26:13 -04:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00