|
From: | Grimes, Robert |
Subject: | Re: [lwip-users] LwIP stops sending data (but keeps retrying forever) - caused by buffer chaining |
Date: | Thu, 28 Mar 2013 17:31:39 +0000 |
“I realize this isn’t an LwIP problem, but I bet a lot of people have this problem waiting
to happen as soon as a short chained packet is sent.” And that is what these lists are for! Thanks for sharing! From: lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden
On Behalf Of Jeremy Spiller The problem isn’t with the LwIP code, but with the Ethernet hardware driver (hdkif.c: hdkif_output). The driver ensures that packets are always at least 60 bytes long. The implementation
I have (from TI for the Hercules Device – RM46L852) has this code: /* adjust the packet length if less than minimum required */ This works as long as buffers are not chained. When the buffers are chained, the packet is permanently destroyed so re-transmits will always fail. The fix is to change the above
code to: /* adjust the packet length if less than minimum required */ I realize this isn’t an LwIP problem, but I bet a lot of people have this problem waiting to happen as soon as a short chained packet is sent.
-Jeremy |
[Prev in Thread] | Current Thread | [Next in Thread] |