Commit 26af65cbeb2467a486ae4fc7242c94e470c67c50

Authored by Sridhar Samudrala
Committed by David S. Miller
1 parent 22dd485022

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

net/ipv4/tcp_output.c
... ... @@ -2131,6 +2131,8 @@
2131 2131 TCP_SKB_CB(skb)->when = tcp_time_stamp;
2132 2132 if (tcp_transmit_skb(sk, skb, 0, priority))
2133 2133 NET_INC_STATS(LINUX_MIB_TCPABORTFAILED);
  2134 +
  2135 + TCP_INC_STATS(TCP_MIB_OUTRSTS);
2134 2136 }
2135 2137  
2136 2138 /* WARNING: This routine must only be called when we have already sent