Counter

Dependencies:   EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem

Committer:
Tuxitheone
Date:
Mon Feb 29 18:59:15 2016 +0000
Revision:
0:ecaf3e593122
TankCounter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Tuxitheone 0:ecaf3e593122 1 /*
Tuxitheone 0:ecaf3e593122 2 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
Tuxitheone 0:ecaf3e593122 3 * All rights reserved.
Tuxitheone 0:ecaf3e593122 4 *
Tuxitheone 0:ecaf3e593122 5 * Redistribution and use in source and binary forms, with or without modification,
Tuxitheone 0:ecaf3e593122 6 * are permitted provided that the following conditions are met:
Tuxitheone 0:ecaf3e593122 7 *
Tuxitheone 0:ecaf3e593122 8 * 1. Redistributions of source code must retain the above copyright notice,
Tuxitheone 0:ecaf3e593122 9 * this list of conditions and the following disclaimer.
Tuxitheone 0:ecaf3e593122 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
Tuxitheone 0:ecaf3e593122 11 * this list of conditions and the following disclaimer in the documentation
Tuxitheone 0:ecaf3e593122 12 * and/or other materials provided with the distribution.
Tuxitheone 0:ecaf3e593122 13 * 3. The name of the author may not be used to endorse or promote products
Tuxitheone 0:ecaf3e593122 14 * derived from this software without specific prior written permission.
Tuxitheone 0:ecaf3e593122 15 *
Tuxitheone 0:ecaf3e593122 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
Tuxitheone 0:ecaf3e593122 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
Tuxitheone 0:ecaf3e593122 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
Tuxitheone 0:ecaf3e593122 19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
Tuxitheone 0:ecaf3e593122 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
Tuxitheone 0:ecaf3e593122 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Tuxitheone 0:ecaf3e593122 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Tuxitheone 0:ecaf3e593122 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
Tuxitheone 0:ecaf3e593122 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
Tuxitheone 0:ecaf3e593122 25 * OF SUCH DAMAGE.
Tuxitheone 0:ecaf3e593122 26 *
Tuxitheone 0:ecaf3e593122 27 * This file is part of the lwIP TCP/IP stack.
Tuxitheone 0:ecaf3e593122 28 *
Tuxitheone 0:ecaf3e593122 29 * Author: Adam Dunkels <adam@sics.se>
Tuxitheone 0:ecaf3e593122 30 *
Tuxitheone 0:ecaf3e593122 31 */
Tuxitheone 0:ecaf3e593122 32 #ifndef __LWIP_STATS_H__
Tuxitheone 0:ecaf3e593122 33 #define __LWIP_STATS_H__
Tuxitheone 0:ecaf3e593122 34
Tuxitheone 0:ecaf3e593122 35 #include "lwip/opt.h"
Tuxitheone 0:ecaf3e593122 36
Tuxitheone 0:ecaf3e593122 37 #include "lwip/mem.h"
Tuxitheone 0:ecaf3e593122 38 #include "lwip/memp.h"
Tuxitheone 0:ecaf3e593122 39
Tuxitheone 0:ecaf3e593122 40 #ifdef __cplusplus
Tuxitheone 0:ecaf3e593122 41 extern "C" {
Tuxitheone 0:ecaf3e593122 42 #endif
Tuxitheone 0:ecaf3e593122 43
Tuxitheone 0:ecaf3e593122 44 #if LWIP_STATS
Tuxitheone 0:ecaf3e593122 45
Tuxitheone 0:ecaf3e593122 46 #ifndef LWIP_STATS_LARGE
Tuxitheone 0:ecaf3e593122 47 #define LWIP_STATS_LARGE 0
Tuxitheone 0:ecaf3e593122 48 #endif
Tuxitheone 0:ecaf3e593122 49
Tuxitheone 0:ecaf3e593122 50 #if LWIP_STATS_LARGE
Tuxitheone 0:ecaf3e593122 51 #define STAT_COUNTER u32_t
Tuxitheone 0:ecaf3e593122 52 #define STAT_COUNTER_F U32_F
Tuxitheone 0:ecaf3e593122 53 #else
Tuxitheone 0:ecaf3e593122 54 #define STAT_COUNTER u16_t
Tuxitheone 0:ecaf3e593122 55 #define STAT_COUNTER_F U16_F
Tuxitheone 0:ecaf3e593122 56 #endif
Tuxitheone 0:ecaf3e593122 57
Tuxitheone 0:ecaf3e593122 58 struct stats_proto {
Tuxitheone 0:ecaf3e593122 59 STAT_COUNTER xmit; /* Transmitted packets. */
Tuxitheone 0:ecaf3e593122 60 STAT_COUNTER recv; /* Received packets. */
Tuxitheone 0:ecaf3e593122 61 STAT_COUNTER fw; /* Forwarded packets. */
Tuxitheone 0:ecaf3e593122 62 STAT_COUNTER drop; /* Dropped packets. */
Tuxitheone 0:ecaf3e593122 63 STAT_COUNTER chkerr; /* Checksum error. */
Tuxitheone 0:ecaf3e593122 64 STAT_COUNTER lenerr; /* Invalid length error. */
Tuxitheone 0:ecaf3e593122 65 STAT_COUNTER memerr; /* Out of memory error. */
Tuxitheone 0:ecaf3e593122 66 STAT_COUNTER rterr; /* Routing error. */
Tuxitheone 0:ecaf3e593122 67 STAT_COUNTER proterr; /* Protocol error. */
Tuxitheone 0:ecaf3e593122 68 STAT_COUNTER opterr; /* Error in options. */
Tuxitheone 0:ecaf3e593122 69 STAT_COUNTER err; /* Misc error. */
Tuxitheone 0:ecaf3e593122 70 STAT_COUNTER cachehit;
Tuxitheone 0:ecaf3e593122 71 };
Tuxitheone 0:ecaf3e593122 72
Tuxitheone 0:ecaf3e593122 73 struct stats_igmp {
Tuxitheone 0:ecaf3e593122 74 STAT_COUNTER xmit; /* Transmitted packets. */
Tuxitheone 0:ecaf3e593122 75 STAT_COUNTER recv; /* Received packets. */
Tuxitheone 0:ecaf3e593122 76 STAT_COUNTER drop; /* Dropped packets. */
Tuxitheone 0:ecaf3e593122 77 STAT_COUNTER chkerr; /* Checksum error. */
Tuxitheone 0:ecaf3e593122 78 STAT_COUNTER lenerr; /* Invalid length error. */
Tuxitheone 0:ecaf3e593122 79 STAT_COUNTER memerr; /* Out of memory error. */
Tuxitheone 0:ecaf3e593122 80 STAT_COUNTER proterr; /* Protocol error. */
Tuxitheone 0:ecaf3e593122 81 STAT_COUNTER rx_v1; /* Received v1 frames. */
Tuxitheone 0:ecaf3e593122 82 STAT_COUNTER rx_group; /* Received group-specific queries. */
Tuxitheone 0:ecaf3e593122 83 STAT_COUNTER rx_general; /* Received general queries. */
Tuxitheone 0:ecaf3e593122 84 STAT_COUNTER rx_report; /* Received reports. */
Tuxitheone 0:ecaf3e593122 85 STAT_COUNTER tx_join; /* Sent joins. */
Tuxitheone 0:ecaf3e593122 86 STAT_COUNTER tx_leave; /* Sent leaves. */
Tuxitheone 0:ecaf3e593122 87 STAT_COUNTER tx_report; /* Sent reports. */
Tuxitheone 0:ecaf3e593122 88 };
Tuxitheone 0:ecaf3e593122 89
Tuxitheone 0:ecaf3e593122 90 struct stats_mem {
Tuxitheone 0:ecaf3e593122 91 #ifdef LWIP_DEBUG
Tuxitheone 0:ecaf3e593122 92 const char *name;
Tuxitheone 0:ecaf3e593122 93 #endif /* LWIP_DEBUG */
Tuxitheone 0:ecaf3e593122 94 mem_size_t avail;
Tuxitheone 0:ecaf3e593122 95 mem_size_t used;
Tuxitheone 0:ecaf3e593122 96 mem_size_t max;
Tuxitheone 0:ecaf3e593122 97 STAT_COUNTER err;
Tuxitheone 0:ecaf3e593122 98 STAT_COUNTER illegal;
Tuxitheone 0:ecaf3e593122 99 };
Tuxitheone 0:ecaf3e593122 100
Tuxitheone 0:ecaf3e593122 101 struct stats_syselem {
Tuxitheone 0:ecaf3e593122 102 STAT_COUNTER used;
Tuxitheone 0:ecaf3e593122 103 STAT_COUNTER max;
Tuxitheone 0:ecaf3e593122 104 STAT_COUNTER err;
Tuxitheone 0:ecaf3e593122 105 };
Tuxitheone 0:ecaf3e593122 106
Tuxitheone 0:ecaf3e593122 107 struct stats_sys {
Tuxitheone 0:ecaf3e593122 108 struct stats_syselem sem;
Tuxitheone 0:ecaf3e593122 109 struct stats_syselem mutex;
Tuxitheone 0:ecaf3e593122 110 struct stats_syselem mbox;
Tuxitheone 0:ecaf3e593122 111 };
Tuxitheone 0:ecaf3e593122 112
Tuxitheone 0:ecaf3e593122 113 struct stats_ {
Tuxitheone 0:ecaf3e593122 114 #if LINK_STATS
Tuxitheone 0:ecaf3e593122 115 struct stats_proto link;
Tuxitheone 0:ecaf3e593122 116 #endif
Tuxitheone 0:ecaf3e593122 117 #if ETHARP_STATS
Tuxitheone 0:ecaf3e593122 118 struct stats_proto etharp;
Tuxitheone 0:ecaf3e593122 119 #endif
Tuxitheone 0:ecaf3e593122 120 #if IPFRAG_STATS
Tuxitheone 0:ecaf3e593122 121 struct stats_proto ip_frag;
Tuxitheone 0:ecaf3e593122 122 #endif
Tuxitheone 0:ecaf3e593122 123 #if IP_STATS
Tuxitheone 0:ecaf3e593122 124 struct stats_proto ip;
Tuxitheone 0:ecaf3e593122 125 #endif
Tuxitheone 0:ecaf3e593122 126 #if ICMP_STATS
Tuxitheone 0:ecaf3e593122 127 struct stats_proto icmp;
Tuxitheone 0:ecaf3e593122 128 #endif
Tuxitheone 0:ecaf3e593122 129 #if IGMP_STATS
Tuxitheone 0:ecaf3e593122 130 struct stats_igmp igmp;
Tuxitheone 0:ecaf3e593122 131 #endif
Tuxitheone 0:ecaf3e593122 132 #if UDP_STATS
Tuxitheone 0:ecaf3e593122 133 struct stats_proto udp;
Tuxitheone 0:ecaf3e593122 134 #endif
Tuxitheone 0:ecaf3e593122 135 #if TCP_STATS
Tuxitheone 0:ecaf3e593122 136 struct stats_proto tcp;
Tuxitheone 0:ecaf3e593122 137 #endif
Tuxitheone 0:ecaf3e593122 138 #if MEM_STATS
Tuxitheone 0:ecaf3e593122 139 struct stats_mem mem;
Tuxitheone 0:ecaf3e593122 140 #endif
Tuxitheone 0:ecaf3e593122 141 #if MEMP_STATS
Tuxitheone 0:ecaf3e593122 142 struct stats_mem memp[MEMP_MAX];
Tuxitheone 0:ecaf3e593122 143 #endif
Tuxitheone 0:ecaf3e593122 144 #if SYS_STATS
Tuxitheone 0:ecaf3e593122 145 struct stats_sys sys;
Tuxitheone 0:ecaf3e593122 146 #endif
Tuxitheone 0:ecaf3e593122 147 };
Tuxitheone 0:ecaf3e593122 148
Tuxitheone 0:ecaf3e593122 149 extern struct stats_ lwip_stats;
Tuxitheone 0:ecaf3e593122 150
Tuxitheone 0:ecaf3e593122 151 void stats_init(void);
Tuxitheone 0:ecaf3e593122 152
Tuxitheone 0:ecaf3e593122 153 #define STATS_INC(x) ++lwip_stats.x
Tuxitheone 0:ecaf3e593122 154 #define STATS_DEC(x) --lwip_stats.x
Tuxitheone 0:ecaf3e593122 155 #define STATS_INC_USED(x, y) do { lwip_stats.x.used += y; \
Tuxitheone 0:ecaf3e593122 156 if (lwip_stats.x.max < lwip_stats.x.used) { \
Tuxitheone 0:ecaf3e593122 157 lwip_stats.x.max = lwip_stats.x.used; \
Tuxitheone 0:ecaf3e593122 158 } \
Tuxitheone 0:ecaf3e593122 159 } while(0)
Tuxitheone 0:ecaf3e593122 160 #else /* LWIP_STATS */
Tuxitheone 0:ecaf3e593122 161 #define stats_init()
Tuxitheone 0:ecaf3e593122 162 #define STATS_INC(x)
Tuxitheone 0:ecaf3e593122 163 #define STATS_DEC(x)
Tuxitheone 0:ecaf3e593122 164 #define STATS_INC_USED(x)
Tuxitheone 0:ecaf3e593122 165 #endif /* LWIP_STATS */
Tuxitheone 0:ecaf3e593122 166
Tuxitheone 0:ecaf3e593122 167 #if TCP_STATS
Tuxitheone 0:ecaf3e593122 168 #define TCP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 169 #define TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP")
Tuxitheone 0:ecaf3e593122 170 #else
Tuxitheone 0:ecaf3e593122 171 #define TCP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 172 #define TCP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 173 #endif
Tuxitheone 0:ecaf3e593122 174
Tuxitheone 0:ecaf3e593122 175 #if UDP_STATS
Tuxitheone 0:ecaf3e593122 176 #define UDP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 177 #define UDP_STATS_DISPLAY() stats_display_proto(&lwip_stats.udp, "UDP")
Tuxitheone 0:ecaf3e593122 178 #else
Tuxitheone 0:ecaf3e593122 179 #define UDP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 180 #define UDP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 181 #endif
Tuxitheone 0:ecaf3e593122 182
Tuxitheone 0:ecaf3e593122 183 #if ICMP_STATS
Tuxitheone 0:ecaf3e593122 184 #define ICMP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 185 #define ICMP_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp, "ICMP")
Tuxitheone 0:ecaf3e593122 186 #else
Tuxitheone 0:ecaf3e593122 187 #define ICMP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 188 #define ICMP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 189 #endif
Tuxitheone 0:ecaf3e593122 190
Tuxitheone 0:ecaf3e593122 191 #if IGMP_STATS
Tuxitheone 0:ecaf3e593122 192 #define IGMP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 193 #define IGMP_STATS_DISPLAY() stats_display_igmp(&lwip_stats.igmp)
Tuxitheone 0:ecaf3e593122 194 #else
Tuxitheone 0:ecaf3e593122 195 #define IGMP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 196 #define IGMP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 197 #endif
Tuxitheone 0:ecaf3e593122 198
Tuxitheone 0:ecaf3e593122 199 #if IP_STATS
Tuxitheone 0:ecaf3e593122 200 #define IP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 201 #define IP_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip, "IP")
Tuxitheone 0:ecaf3e593122 202 #else
Tuxitheone 0:ecaf3e593122 203 #define IP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 204 #define IP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 205 #endif
Tuxitheone 0:ecaf3e593122 206
Tuxitheone 0:ecaf3e593122 207 #if IPFRAG_STATS
Tuxitheone 0:ecaf3e593122 208 #define IPFRAG_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 209 #define IPFRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG")
Tuxitheone 0:ecaf3e593122 210 #else
Tuxitheone 0:ecaf3e593122 211 #define IPFRAG_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 212 #define IPFRAG_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 213 #endif
Tuxitheone 0:ecaf3e593122 214
Tuxitheone 0:ecaf3e593122 215 #if ETHARP_STATS
Tuxitheone 0:ecaf3e593122 216 #define ETHARP_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 217 #define ETHARP_STATS_DISPLAY() stats_display_proto(&lwip_stats.etharp, "ETHARP")
Tuxitheone 0:ecaf3e593122 218 #else
Tuxitheone 0:ecaf3e593122 219 #define ETHARP_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 220 #define ETHARP_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 221 #endif
Tuxitheone 0:ecaf3e593122 222
Tuxitheone 0:ecaf3e593122 223 #if LINK_STATS
Tuxitheone 0:ecaf3e593122 224 #define LINK_STATS_INC(x) STATS_INC(x)
Tuxitheone 0:ecaf3e593122 225 #define LINK_STATS_DISPLAY() stats_display_proto(&lwip_stats.link, "LINK")
Tuxitheone 0:ecaf3e593122 226 #else
Tuxitheone 0:ecaf3e593122 227 #define LINK_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 228 #define LINK_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 229 #endif
Tuxitheone 0:ecaf3e593122 230
Tuxitheone 0:ecaf3e593122 231 #if MEM_STATS
Tuxitheone 0:ecaf3e593122 232 #define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y
Tuxitheone 0:ecaf3e593122 233 #define MEM_STATS_INC(x) STATS_INC(mem.x)
Tuxitheone 0:ecaf3e593122 234 #define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y)
Tuxitheone 0:ecaf3e593122 235 #define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y
Tuxitheone 0:ecaf3e593122 236 #define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP")
Tuxitheone 0:ecaf3e593122 237 #else
Tuxitheone 0:ecaf3e593122 238 #define MEM_STATS_AVAIL(x, y)
Tuxitheone 0:ecaf3e593122 239 #define MEM_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 240 #define MEM_STATS_INC_USED(x, y)
Tuxitheone 0:ecaf3e593122 241 #define MEM_STATS_DEC_USED(x, y)
Tuxitheone 0:ecaf3e593122 242 #define MEM_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 243 #endif
Tuxitheone 0:ecaf3e593122 244
Tuxitheone 0:ecaf3e593122 245 #if MEMP_STATS
Tuxitheone 0:ecaf3e593122 246 #define MEMP_STATS_AVAIL(x, i, y) lwip_stats.memp[i].x = y
Tuxitheone 0:ecaf3e593122 247 #define MEMP_STATS_INC(x, i) STATS_INC(memp[i].x)
Tuxitheone 0:ecaf3e593122 248 #define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i].x)
Tuxitheone 0:ecaf3e593122 249 #define MEMP_STATS_INC_USED(x, i) STATS_INC_USED(memp[i], 1)
Tuxitheone 0:ecaf3e593122 250 #define MEMP_STATS_DISPLAY(i) stats_display_memp(&lwip_stats.memp[i], i)
Tuxitheone 0:ecaf3e593122 251 #else
Tuxitheone 0:ecaf3e593122 252 #define MEMP_STATS_AVAIL(x, i, y)
Tuxitheone 0:ecaf3e593122 253 #define MEMP_STATS_INC(x, i)
Tuxitheone 0:ecaf3e593122 254 #define MEMP_STATS_DEC(x, i)
Tuxitheone 0:ecaf3e593122 255 #define MEMP_STATS_INC_USED(x, i)
Tuxitheone 0:ecaf3e593122 256 #define MEMP_STATS_DISPLAY(i)
Tuxitheone 0:ecaf3e593122 257 #endif
Tuxitheone 0:ecaf3e593122 258
Tuxitheone 0:ecaf3e593122 259 #if SYS_STATS
Tuxitheone 0:ecaf3e593122 260 #define SYS_STATS_INC(x) STATS_INC(sys.x)
Tuxitheone 0:ecaf3e593122 261 #define SYS_STATS_DEC(x) STATS_DEC(sys.x)
Tuxitheone 0:ecaf3e593122 262 #define SYS_STATS_INC_USED(x) STATS_INC_USED(sys.x, 1)
Tuxitheone 0:ecaf3e593122 263 #define SYS_STATS_DISPLAY() stats_display_sys(&lwip_stats.sys)
Tuxitheone 0:ecaf3e593122 264 #else
Tuxitheone 0:ecaf3e593122 265 #define SYS_STATS_INC(x)
Tuxitheone 0:ecaf3e593122 266 #define SYS_STATS_DEC(x)
Tuxitheone 0:ecaf3e593122 267 #define SYS_STATS_INC_USED(x)
Tuxitheone 0:ecaf3e593122 268 #define SYS_STATS_DISPLAY()
Tuxitheone 0:ecaf3e593122 269 #endif
Tuxitheone 0:ecaf3e593122 270
Tuxitheone 0:ecaf3e593122 271 /* Display of statistics */
Tuxitheone 0:ecaf3e593122 272 #if LWIP_STATS_DISPLAY
Tuxitheone 0:ecaf3e593122 273 void stats_display(void);
Tuxitheone 0:ecaf3e593122 274 void stats_display_proto(struct stats_proto *proto, char *name);
Tuxitheone 0:ecaf3e593122 275 void stats_display_igmp(struct stats_igmp *igmp);
Tuxitheone 0:ecaf3e593122 276 void stats_display_mem(struct stats_mem *mem, char *name);
Tuxitheone 0:ecaf3e593122 277 void stats_display_memp(struct stats_mem *mem, int index);
Tuxitheone 0:ecaf3e593122 278 void stats_display_sys(struct stats_sys *sys);
Tuxitheone 0:ecaf3e593122 279 #else /* LWIP_STATS_DISPLAY */
Tuxitheone 0:ecaf3e593122 280 #define stats_display()
Tuxitheone 0:ecaf3e593122 281 #define stats_display_proto(proto, name)
Tuxitheone 0:ecaf3e593122 282 #define stats_display_igmp(igmp)
Tuxitheone 0:ecaf3e593122 283 #define stats_display_mem(mem, name)
Tuxitheone 0:ecaf3e593122 284 #define stats_display_memp(mem, index)
Tuxitheone 0:ecaf3e593122 285 #define stats_display_sys(sys)
Tuxitheone 0:ecaf3e593122 286 #endif /* LWIP_STATS_DISPLAY */
Tuxitheone 0:ecaf3e593122 287
Tuxitheone 0:ecaf3e593122 288 #ifdef __cplusplus
Tuxitheone 0:ecaf3e593122 289 }
Tuxitheone 0:ecaf3e593122 290 #endif
Tuxitheone 0:ecaf3e593122 291
Tuxitheone 0:ecaf3e593122 292 #endif /* __LWIP_STATS_H__ */