lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LWIP 1.3.2


From: Sirjee Rooplall
Subject: Re: [lwip-users] LWIP 1.3.2
Date: Fri, 19 Mar 2010 10:50:34 +0200

Thanks, implemented it and I can now handle the fragmented packets.

Kind Regards, Sirjee Rooplall Figment Design laboratories (Pty) Ltd mailto: address@hidden Mobile: +27 (0)83 230 8466 ----- Original Message ----- From: "Kieran Mansley" <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]