From ac5b2ea0493118151ae2cd891768be0901be6a7e Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 3 Aug 2018 01:25:53 +0000 Subject: [PATCH] Merged in masayuki2009/nuttx.nuttx/fix_tcp_statistics (pull request #703) net/tcp: Remove g_netstats.tcp.syndrop++ from tcp_data_event() Signed-off-by: Masayuki Ishikawa Approved-by: GregoryN --- net/tcp/tcp_callback.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/tcp/tcp_callback.c b/net/tcp/tcp_callback.c index a43af2fb901..7aca15a2812 100644 --- a/net/tcp/tcp_callback.c +++ b/net/tcp/tcp_callback.c @@ -113,7 +113,6 @@ tcp_data_event(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn, ninfo("Dropped %d bytes\n", dev->d_len); #ifdef CONFIG_NET_STATISTICS - g_netstats.tcp.syndrop++; g_netstats.tcp.drop++; #endif /* Clear the TCP_SNDACK bit so that no ACK will be sent */