mbox series

[net-next,0/5] tcp: support rstreasons in the passive logic

Message ID 20240509131306.92931-1-kerneljasonxing@gmail.com (mailing list archive)
Headers show
Series tcp: support rstreasons in the passive logic | expand

Message

Jason Xing May 9, 2024, 1:13 p.m. UTC
From: Jason Xing <kernelxing@tencent.com>

In this series, I split all kinds of reasons into five part which, I
think, can be easily reviewed. I respectively implement corresponding
rstreasons in those functions. After this, we can trace the whole tcp
passive reset with clear reasons.

Jason Xing (5):
  tcp: fully support sk reset reasons in tcp_rcv_synsent_state_process()
  tcp: fully support sk reset reason in tcp_ack()
  tcp: fully support sk reset reason in tcp_rcv_state_process()
  tcp: handle timewait cases in rstreason logic
  tcp: handle rstreason in tcp_check_req()

 include/net/rstreason.h  | 58 ++++++++++++++++++++++++++++++++++++++++
 net/ipv4/tcp_ipv4.c      |  2 +-
 net/ipv4/tcp_minisocks.c |  2 +-
 net/ipv6/tcp_ipv6.c      |  2 +-
 4 files changed, 61 insertions(+), 3 deletions(-)