[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1212166947.12643.8.camel@w-sridhar2.beaverton.ibm.com>
Date: Fri, 30 May 2008 10:02:27 -0700
From: Sridhar Samudrala <sri@...ibm.com>
To: davem@...emloft.net, netdev@...r.kernel.org
Subject: [PATCH] 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@...ibm.com>
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index e399bde..23c22d4 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists