summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorChristoph Paasch <cpaasch@apple.com>2019-07-07 01:13:07 +0200
committerDavid S. Miller <davem@davemloft.net>2019-07-09 04:29:19 +0200
commite858faf556d4e14c750ba1e8852783c6f9520a0e (patch)
treefd947f61dfb523a13ff1513676705215bb1289f3 /samples
parentselftests: txring_overwrite: fix incorrect test of mmap() return value (diff)
downloadlinux-e858faf556d4e14c750ba1e8852783c6f9520a0e.tar.xz
linux-e858faf556d4e14c750ba1e8852783c6f9520a0e.zip
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions