mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user