Hi,

I'm using LWIP 1.3.0 with the modified CS8900 driver coming with contrib.

The transfer from CS8900 to RAM buffer is done by DMA and works fine so far. Then cs8900_input() does a pbuf_alloc() and copies 1 packet from DMA buffer to pbuf.

But what if pbuf_alloc() fails? If I drop this packet I might get problems with HTTP handshake. If I try again next time cs8900_service() is called I will run into the same problem. Neither cs8900_input() nor cs8900if_input() does anything without pbuf. There must be a pbuf_free before a pbuf_alloc is successful.

How do I do this the right way?

TIA

Gustl



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to