I had these same questions and surprises when I started working on lwIP. I'm compiling a list of things that need to be documented outside of the code, and this is one of those topics that needs to be explained better.
Since youre a newcomer like me, have you come across anything that required you to dig in the code to figure something out? The more we learn about the code the more we forget how hard some things were to figure out that first time... I'd like to close the learning curve as much as possible by getting some up-to-date docs on lwIP up. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Baird Sent: Friday, July 13, 2007 1:51 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] udp_send: space for IP header is not being allocated? On 7/13/07, Grubb, Jared <[EMAIL PROTECTED]> wrote: > Udp_send doesn't know that you set the buffer up properly, so it first > TRIES to call pbuf_header, and if you messed up by passing it a pbuf > that didn't have room for the header, then it allocates a new pbuf to > chain in front of the one you gave it. (You may not have messed up... > for example, you may be passing a PBUF_REF or PBUF_ROM type, which > doesn't have room for a header anyway) That makes sense. Thanks for the explanation. Is there someone who can apply my patch for the documentation? _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
