[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1491741881-28322-1-git-send-email-gfree.wind@foxmail.com>
Date: Sun, 9 Apr 2017 20:44:41 +0800
From: gfree.wind@...mail.com
To: davem@...emloft.net, kuznet@....inr.ac.ru, jmorris@...ei.org,
kaber@...sh.net, ncardwell@...gle.com, netdev@...r.kernel.org
Cc: Gao Feng <fgao@...ai8.com>
Subject: [PATCH net 1/1] net: tcp: Increase TCPABORTONLINGER when send RST by linger2 in keepalive timer
From: Gao Feng <fgao@...ai8.com>
It should increase TCPABORTONLINGER counter when send RST caused by
linger2 in keepalive timer.
Signed-off-by: Gao Feng <fgao@...ai8.com>
---
net/ipv4/tcp_timer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index b2ab411..5c01f21 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -650,6 +650,8 @@ static void tcp_keepalive_timer (unsigned long data)
tcp_time_wait(sk, TCP_FIN_WAIT2, tmo);
goto out;
}
+ } else {
+ NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONLINGER);
}
tcp_send_active_reset(sk, GFP_ATOMIC);
goto death;
--
1.9.1
Powered by blists - more mailing lists