diff options
| author | Jason Xing <[email protected]> | 2024-04-25 03:13:40 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-04-26 13:34:01 +0000 |
| commit | b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24 (patch) | |
| tree | 3441c70fb71b9bb73af14f90af4c1ece881d4d23 /net/ipv4/tcp_output.c | |
| parent | mptcp: introducing a helper into active reset logic (diff) | |
| download | kernel-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.tar.gz kernel-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 <[email protected]>
Reviewed-by: Steven Rostedt (Google) <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
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. |
