> I am confused:
>
*> "#define* PBUF_POOL_BUFSIZE 500" is not the packet size (I can see packet of 1460 bytes from Wireshark), how does it affect the tx buffer?
Each buffer is 500 bytes long. A packet of 1460 bytes TCP data (plus some headers, 1514 bytes totally) is thus made up of 4 pbufs from the pool *if* these are used. For transmitting, PBUF_RAM is used, which is allocated from the heap, the size of which is define with the define MEM_SIZE (in bytes).