diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-26 09:32:39 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-26 09:32:39 -0600 |
commit | 75f58f656bd9f3530a4463649e68fc865d53baab (patch) | |
tree | 2ac12b0b6f149bc7bbccc5183bc591f7bd17afd1 /nuttx/net/tcp/tcp_send.c | |
parent | 1206502f67badb5938a0012c18e21a9fa45c6f5b (diff) | |
download | px4-nuttx-75f58f656bd9f3530a4463649e68fc865d53baab.tar.gz px4-nuttx-75f58f656bd9f3530a4463649e68fc865d53baab.tar.bz2 px4-nuttx-75f58f656bd9f3530a4463649e68fc865d53baab.zip |
NET: Move statistcs from uip.h to new netstats.h to remove nasty circular inclusion problem.
Diffstat (limited to 'nuttx/net/tcp/tcp_send.c')
-rw-r--r-- | nuttx/net/tcp/tcp_send.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/net/tcp/tcp_send.c b/nuttx/net/tcp/tcp_send.c index 54f10baba..97cf9053f 100644 --- a/nuttx/net/tcp/tcp_send.c +++ b/nuttx/net/tcp/tcp_send.c @@ -51,6 +51,7 @@ #include <nuttx/net/netconfig.h> #include <nuttx/net/uip.h> #include <nuttx/net/netdev.h> +#include <nuttx/net/netstats.h> #include "uip/uip.h" @@ -146,8 +147,8 @@ static void tcp_sendcomplete(FAR struct uip_driver_s *dev) dev->d_len, (pbuf->len[0] << 8) | pbuf->len[1]); #ifdef CONFIG_NET_STATISTICS - uip_stat.tcp.sent++; - uip_stat.ip.sent++; + g_netstats.tcp.sent++; + g_netstats.ip.sent++; #endif } @@ -267,7 +268,7 @@ void tcp_reset(FAR struct uip_driver_s *dev) uint8_t seqbyte; #ifdef CONFIG_NET_STATISTICS - uip_stat.tcp.rst++; + g_netstats.tcp.rst++; #endif pbuf->flags = TCP_RST | TCP_ACK; |