diff options
| author | Jason Xing <[email protected]> | 2024-05-10 12:25:01 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-14 00:33:57 +0000 |
| commit | 22a32557758a7100e46dfa8f383a401125e60b16 (patch) | |
| tree | 9b230ca176f3e2cf51b313f474db8403e0ea0b37 /net/ipv6/tcp_ipv6.c | |
| parent | tcp: rstreason: fully support in tcp_rcv_state_process() (diff) | |
| download | kernel-22a32557758a7100e46dfa8f383a401125e60b16.tar.gz kernel-22a32557758a7100e46dfa8f383a401125e60b16.zip | |
tcp: rstreason: handle timewait cases in the receive path
There are two possible cases where TCP layer can send an RST. Since they
happen in the same place, I think using one independent reason is enough
to identify this special situation.
Signed-off-by: Jason Xing <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 7f6693e794bd..4c3605485b68 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1999,7 +1999,7 @@ do_time_wait: tcp_v6_timewait_ack(sk, skb); break; case TCP_TW_RST: - tcp_v6_send_reset(sk, skb, sk_rst_convert_drop_reason(drop_reason)); + tcp_v6_send_reset(sk, skb, SK_RST_REASON_TCP_TIMEWAIT_SOCKET); inet_twsk_deschedule_put(inet_twsk(sk)); goto discard_it; case TCP_TW_SUCCESS: |
