Skip to content

Commit

Permalink
tcp: Increment OUTRSTS in tcp_send_active_reset()
Browse files Browse the repository at this point in the history
TCP "resets sent" counter is not incremented when a TCP Reset is 
sent via tcp_send_active_reset().

Signed-off-by: Sridhar Samudrala <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Sridhar Samudrala authored and davem330 committed Jun 4, 2008
1 parent 22dd485 commit 26af65c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,8 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority)
TCP_SKB_CB(skb)->when = tcp_time_stamp;
if (tcp_transmit_skb(sk, skb, 0, priority))
NET_INC_STATS(LINUX_MIB_TCPABORTFAILED);

TCP_INC_STATS(TCP_MIB_OUTRSTS);
}

/* WARNING: This routine must only be called when we have already sent
Expand Down

0 comments on commit 26af65c

Please sign in to comment.