summaryrefslogtreecommitdiffstats
path: root/include/net/rstreason.h
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-08-02 12:21:09 +0200
committerDavid S. Miller <davem@davemloft.net>2024-08-07 11:24:45 +0200
commitedefba66d929eb2d023df93a0a8175a4ffe82684 (patch)
treef3cd5a52524fa173fefb0993396710a9c2868ea7 /include/net/rstreason.h
parenttcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_MEMORY for active reset (diff)
downloadlinux-edefba66d929eb2d023df93a0a8175a4ffe82684.tar.xz
linux-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 <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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/rstreason.h b/include/net/rstreason.h
index eef658da8952..bbf20d0bbde7 100644
--- a/include/net/rstreason.h
+++ b/include/net/rstreason.h
@@ -20,6 +20,7 @@
FN(TCP_ABORT_ON_CLOSE) \
FN(TCP_ABORT_ON_LINGER) \
FN(TCP_ABORT_ON_MEMORY) \
+ FN(TCP_STATE) \
FN(MPTCP_RST_EUNSPEC) \
FN(MPTCP_RST_EMPTCP) \
FN(MPTCP_RST_ERESOURCE) \
@@ -102,6 +103,11 @@ enum sk_rst_reason {
* corresponding to LINUX_MIB_TCPABORTONMEMORY
*/
SK_RST_REASON_TCP_ABORT_ON_MEMORY,
+ /**
+ * @SK_RST_REASON_TCP_STATE: abort on tcp state
+ * Please see RFC 9293 for all possible reset conditions
+ */
+ SK_RST_REASON_TCP_STATE,
/* Copy from include/uapi/linux/mptcp.h.
* These reset fields will not be changed since they adhere to