summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-04-25 11:13:40 +0800
committerPaolo Abeni <pabeni@redhat.com>2024-04-26 15:34:01 +0200
commitb533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24 (patch)
tree3441c70fb71b9bb73af14f90af4c1ece881d4d23 /net/ipv4/tcp_ipv4.c
parent215d40248bde5562a21e4c6cdeaeca0495c9365a (diff)
downloadlinux-stable-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.tar.gz
linux-stable-b533fb9cf4f7c6ca2aa255a5a1fdcde49fff2b24.tar.bz2
linux-stable-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_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 621879ba916d..0427deca3e0e 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -871,7 +871,7 @@ static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb,
if (sk)
arg.bound_dev_if = sk->sk_bound_dev_if;
- trace_tcp_send_reset(sk, skb);
+ trace_tcp_send_reset(sk, skb, reason);
BUILD_BUG_ON(offsetof(struct sock, sk_bound_dev_if) !=
offsetof(struct inet_timewait_sock, tw_bound_dev_if));