summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-08-02 18:21:10 +0800
committerDavid S. Miller <davem@davemloft.net>2024-08-07 10:24:45 +0100
commit0a399892a596055c8f069a17b4775fe5ab66d32a (patch)
tree9fc963ab93336071a3315a8290baabfdadfab50a /net/ipv4
parentedefba66d929eb2d023df93a0a8175a4ffe82684 (diff)
downloadlwn-0a399892a596055c8f069a17b4775fe5ab66d32a.tar.gz
lwn-0a399892a596055c8f069a17b4775fe5ab66d32a.zip
tcp: rstreason: introduce SK_RST_REASON_TCP_KEEPALIVE_TIMEOUT for active reset
Introducing this to show the users the reason of keepalive timeout. Signed-off-by: Jason Xing <kernelxing@tencent.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-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 3910f6d8614e..86169127e4d1 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -807,7 +807,7 @@ static void tcp_keepalive_timer (struct timer_list *t)
(user_timeout == 0 &&
icsk->icsk_probes_out >= keepalive_probes(tp))) {
tcp_send_active_reset(sk, GFP_ATOMIC,
- SK_RST_REASON_NOT_SPECIFIED);
+ SK_RST_REASON_TCP_KEEPALIVE_TIMEOUT);
tcp_write_err(sk);
goto out;
}