mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 01:54:09 +08:00
tcp: Increment OUTRSTS in tcp_send_active_reset()
TCP "resets sent" counter is not incremented when a TCP Reset is sent via tcp_send_active_reset(). Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22dd485022
commit
26af65cbeb
@ -2131,6 +2131,8 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority)
|
|||||||
TCP_SKB_CB(skb)->when = tcp_time_stamp;
|
TCP_SKB_CB(skb)->when = tcp_time_stamp;
|
||||||
if (tcp_transmit_skb(sk, skb, 0, priority))
|
if (tcp_transmit_skb(sk, skb, 0, priority))
|
||||||
NET_INC_STATS(LINUX_MIB_TCPABORTFAILED);
|
NET_INC_STATS(LINUX_MIB_TCPABORTFAILED);
|
||||||
|
|
||||||
|
TCP_INC_STATS(TCP_MIB_OUTRSTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WARNING: This routine must only be called when we have already sent
|
/* WARNING: This routine must only be called when we have already sent
|
||||||
|
Loading…
Reference in New Issue
Block a user