diff options
author | Jason Xing <kernelxing@tencent.com> | 2024-08-02 12:21:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-07 11:24:45 +0200 |
commit | edc92b48abc5b21c98eca5d05b98a560d7df2e4d (patch) | |
tree | 5b231b25754f7ca1e275df01a680d6e10817bf3b /include/net/rstreason.h | |
parent | tcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_CLOSE for active reset (diff) | |
download | linux-edc92b48abc5b21c98eca5d05b98a560d7df2e4d.tar.xz linux-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 <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rstreason.h')
-rw-r--r-- | include/net/rstreason.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/rstreason.h b/include/net/rstreason.h index fa6bfd0d7d69..fbbaeb969e6a 100644 --- a/include/net/rstreason.h +++ b/include/net/rstreason.h @@ -18,6 +18,7 @@ FN(TCP_TIMEWAIT_SOCKET) \ FN(INVALID_SYN) \ FN(TCP_ABORT_ON_CLOSE) \ + FN(TCP_ABORT_ON_LINGER) \ FN(MPTCP_RST_EUNSPEC) \ FN(MPTCP_RST_EMPTCP) \ FN(MPTCP_RST_ERESOURCE) \ @@ -90,6 +91,11 @@ enum sk_rst_reason { * corresponding to LINUX_MIB_TCPABORTONCLOSE */ SK_RST_REASON_TCP_ABORT_ON_CLOSE, + /** + * @SK_RST_REASON_TCP_ABORT_ON_LINGER: abort on linger + * corresponding to LINUX_MIB_TCPABORTONLINGER + */ + SK_RST_REASON_TCP_ABORT_ON_LINGER, /* Copy from include/uapi/linux/mptcp.h. * These reset fields will not be changed since they adhere to |