diff options
| author | Jason Xing <[email protected]> | 2024-08-02 10:21:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-08-07 09:24:45 +0000 |
| commit | edc92b48abc5b21c98eca5d05b98a560d7df2e4d (patch) | |
| tree | 5b231b25754f7ca1e275df01a680d6e10817bf3b /net/ipv4/tcp.c | |
| parent | tcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_CLOSE for active reset (diff) | |
| download | kernel-edc92b48abc5b21c98eca5d05b98a560d7df2e4d.tar.gz kernel-edc92b48abc5b21c98eca5d05b98a560d7df2e4d.zip | |
tcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_LINGER for active reset
Introducing a new type TCP_ABORT_ON_LINGER for tcp reset reason to handle
negative linger value case.
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.c')
| -rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 2e010add0317..5b0f1d1fc697 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2908,7 +2908,7 @@ adjudge_to_death: if (READ_ONCE(tp->linger2) < 0) { tcp_set_state(sk, TCP_CLOSE); tcp_send_active_reset(sk, GFP_ATOMIC, - SK_RST_REASON_NOT_SPECIFIED); + SK_RST_REASON_TCP_ABORT_ON_LINGER); __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONLINGER); } else { |
