Introduced ETHARP_STATS

This commit is contained in:
goldsimon
2007-11-28 21:25:06 +00:00
parent 4a01122fb7
commit 1b07fecbf3
5 changed files with 39 additions and 7 deletions

View File

@@ -1007,6 +1007,13 @@
#define LINK_STATS 1
#endif
/**
* ETHARP_STATS==1: Enable etharp stats.
*/
#ifndef ETHARP_STATS
#define ETHARP_STATS (LWIP_ARP)
#endif
/**
* IP_STATS==1: Enable IP stats.
*/

View File

@@ -105,6 +105,9 @@ struct stats_ {
#if LINK_STATS
struct stats_proto link;
#endif
#if ETHARP_STATS
struct stats_proto etharp;
#endif
#if IPFRAG_STATS
struct stats_proto ip_frag;
#endif
@@ -180,6 +183,12 @@ extern struct stats_ lwip_stats;
#define IPFRAG_STATS_INC(x)
#endif
#if ETHARP_STATS
#define ETHARP_STATS_INC(x) STATS_INC(x)
#else
#define ETHARP_STATS_INC(x)
#endif
#if LINK_STATS
#define LINK_STATS_INC(x) STATS_INC(x)
#else