Bernhard 'Gustl' Bauer schrieb:
I made an upgrade from 1.3.0 to 1.3.2 and had a lock at the MEMP STATS
before I connected eth. The values for avail did not meet what I
expected from my defines:
RAW_PCB: 0/0/0/0 (MEMP_NUM_RAW_PCB == 4)
UDP_PCB: 0/4/0/0 (MEMP_NUM_UDP_PCB == 4)
TCP_PCB: 4/1/1/0 (MEMP_NUM_TCP_PCB == 200)
TCP_PCB_LISTEN: 0/1/0/1 (MEMP_NUM_TCP_PCB_LISTEN == 1)
TCP_SEG: 1/0/128/0 (MEMP_NUM_TCP_SEG == 128)
REASSDATA: 0/10/0/0 (MEMP_NUM_REASSDATA == 10)
PBUF_REF/ROM: 64/0/0/0 (MEMP_NUM_PBUF == 64)
PBUF_POOL: 0/0/0/0 (PBUF_POOL_SIZE == 64)
I made some progress.
In include\lwip\stats.h stats_mem is declared with a member illegal:
struct stats_mem {
mem_size_t avail;
mem_size_t used;
mem_size_t max;
STAT_COUNTER err;
STAT_COUNTER illegal;
};
This member is missing when lwip_stats is initialized in memp_init();
When I add this line to the for loop avail is set correct:
MEMP_STATS_AVAIL(illegal, i, 0);
Any idea why this is so? I'm afraid that the inc on used and err wont
work too.
TIA
Gustl
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users