Skip to content

Commit ba0ca28

Browse files
JasonXingdavem330
authored andcommitted
tcp: rstreason: let it work finally in tcp_send_active_reset()
Now it's time to let it work by using the 'reason' parameter in the trace world :) Signed-off-by: Jason Xing <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c026c65 commit ba0ca28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/tcp_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3649,7 +3649,7 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority,
36493649
/* skb of trace_tcp_send_reset() keeps the skb that caused RST,
36503650
* skb here is different to the troublesome skb, so use NULL
36513651
*/
3652-
trace_tcp_send_reset(sk, NULL, SK_RST_REASON_NOT_SPECIFIED);
3652+
trace_tcp_send_reset(sk, NULL, reason);
36533653
}
36543654

36553655
/* Send a crossed SYN-ACK during socket establishment.

0 commit comments

Comments
 (0)