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: Kieran Mansley
Subject: Re: [lwip-users] LWIP 1.3.2
Date: Fri, 19 Mar 2010 08:37:02 +0000

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





reply via email to

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