Thanks, implemented it and I can now handle the fragmented packets.
Kind Regards, Sirjee Rooplall Figment Design laboratories (Pty) Ltd mailto: [email protected] Mobile: +27 (0)83 230 8466 ----- Original Message ----- From: "Kieran Mansley" <[email protected]>
To: "Mailing list for lwIP users" <[email protected]> Sent: Friday, March 19, 2010 10:37 AM Subject: Re: [lwip-users] LWIP 1.3.2
On Fri, 2010-03-19 at 07:27 +0200, Sirjee Rooplall wrote:/* Where is the data? */ netbuf_data( pxRxBuffer, (void *) &pcRxString, &Length );That's your problem. netbuf_data() returns a pointer to the first buffer in the list. What you need to do is use netbuf_next() to get the subsequent buffers in the chain, like this: do { netbuf_data( pxRxBuffer, (void *) &pcRxString, &Length ); processRxPacket((U8*)pcRxString, Length); } while (netbuf_next(pxRxBuffer) != -1); netbuf_delete( pxRxBuffer ); Kieran _______________________________________________ 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
