[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] a question
From: |
Leon Woestenberg |
Subject: |
Re: [lwip-users] a question |
Date: |
Sun, 28 Nov 2004 18:00:14 +0100 |
User-agent: |
Mozilla Thunderbird 0.7.1 (Windows/20040626) |
Hello,
Craig Graham wrote:
>That's in case the packet from the ethernet is to big to fit into a single
>pbuf, in which case you actually have a linked list of pbuf's (a chain). 'q'
>iterates along the linked list, filling each pbuf with as much data as it
>can, then moving on to the next pbuf in the chain until it has read the
>entire packet from the ethernet chip.
>
>
>
Yes, and pointer p is kept to its origin, because we might need it later
in the last part of the function:
#if ETH_PAD_SIZE
pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */
#endif
So, we cannot just use q to iterate over the pbuf chain.
Regards,
Leon.