stats.h, stats.c, msg_in.c: Stats counters can be change to u32_t if necessary with the new option LWIP_STATS_LARGE. If you need this option, define LWIP_STATS_LARGE to 1 in your lwipopts.h. More, unused counters are not defined in the stats structs, and not display by stats_display(). Note that some options (SYS_STATS and RAW_STATS) are defined but never used. Fix msg_in.c with the correct #if test for a stat display.

This commit is contained in:
fbernon
2007-03-22 16:36:45 +00:00
parent 544e469eeb
commit e54cd23ecb
4 changed files with 102 additions and 50 deletions

View File

@@ -121,7 +121,7 @@ snmp_ok_response(struct snmp_msg_pstat *msg_ps)
if (err_ret == ERR_MEM)
{
/* serious memory problem, can't return tooBig */
#if LWIP_STATS
#if PBUF_STATS
LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_msg_event pbufs.used = %"U16_F"\n",lwip_stats.pbuf.used));
#endif
}