]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: consume incoming skb leading to a reset
authorEric Dumazet <edumazet@google.com>
Sat, 16 Apr 2022 00:10:39 +0000 (17:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2022 12:31:31 +0000 (13:31 +0100)
commit9c7c22dc4ff01f03de7dc3f34d9e5fdc198a87f4
treef05c8eb9accd468f1815cb9d3d926481f71641f7
parent1eac15e60779cbaa9fc7de0eb416fe86f9f7c518
tcp: consume incoming skb leading to a reset

Whenever tcp_validate_incoming() handles a valid RST packet,
we should not pretend the packet was dropped.

Create a special section at the end of tcp_validate_incoming()
to handle this case.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c