diff options
author | Jason Xing <kernelxing@tencent.com> | 2024-04-25 11:13:40 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-04-26 15:34:01 +0200 |
commit | b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24 (patch) | |
tree | 3441c70fb71b9bb73af14f90af4c1ece881d4d23 /net/ipv4/tcp_output.c | |
parent | 215d40248bde5562a21e4c6cdeaeca0495c9365a (diff) | |
download | linux-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.tar.gz linux-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.tar.bz2 linux-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.zip |
rstreason: make it work in trace world
At last, we should let it work by introducing this reset reason in
trace world.
One of the possible expected outputs is:
... tcp_send_reset: skbaddr=xxx skaddr=xxx src=xxx dest=xxx
state=TCP_ESTABLISHED reason=NOT_SPECIFIED
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 41c352bf3394..ece4726c8751 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -3641,7 +3641,7 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority, /* skb of trace_tcp_send_reset() keeps the skb that caused RST, * skb here is different to the troublesome skb, so use NULL */ - trace_tcp_send_reset(sk, NULL); + trace_tcp_send_reset(sk, NULL, SK_RST_REASON_NOT_SPECIFIED); } /* Send a crossed SYN-ACK during socket establishment. |