aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorJason Xing <[email protected]>2024-08-02 10:21:09 +0000
committerDavid S. Miller <[email protected]>2024-08-07 09:24:45 +0000
commitedefba66d929eb2d023df93a0a8175a4ffe82684 (patch)
treef3cd5a52524fa173fefb0993396710a9c2868ea7 /net/ipv4/tcp_timer.c
parenttcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_MEMORY for active reset (diff)
downloadkernel-edefba66d929eb2d023df93a0a8175a4ffe82684.tar.gz
kernel-edefba66d929eb2d023df93a0a8175a4ffe82684.zip
tcp: rstreason: introduce SK_RST_REASON_TCP_STATE for active reset
Introducing a new type TCP_STATE to handle some reset conditions appearing in RFC 793 due to its socket state. Actually, we can look into RFC 9293 which has no discrepancy about this part. Signed-off-by: Jason Xing <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r--net/ipv4/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 0fba4a4fb988..3910f6d8614e 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -779,7 +779,7 @@ static void tcp_keepalive_timer (struct timer_list *t)
goto out;
}
}
- tcp_send_active_reset(sk, GFP_ATOMIC, SK_RST_REASON_NOT_SPECIFIED);
+ tcp_send_active_reset(sk, GFP_ATOMIC, SK_RST_REASON_TCP_STATE);
goto death;
}