mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
Reverted back to David Haas' patch of pbuf_chain() from 1.34.
This commit is contained in:
parent
4c3512c0a2
commit
5f35f4bb3b
@ -710,11 +710,12 @@ pbuf_chain(struct pbuf *h, struct pbuf *t)
|
|||||||
LWIP_ASSERT("t != NULL", t != NULL);
|
LWIP_ASSERT("t != NULL", t != NULL);
|
||||||
|
|
||||||
/* proceed to last pbuf of chain */
|
/* proceed to last pbuf of chain */
|
||||||
for (p = h; p != NULL; p = p->next) {
|
for (p = h; p->next != NULL; p = p->next) {
|
||||||
/* add total length of second chain to all totals of first chain */
|
/* add total length of second chain to all totals of first chain */
|
||||||
p->tot_len += t->tot_len;
|
p->tot_len += t->tot_len;
|
||||||
}
|
}
|
||||||
|
/* add total length of second chain to last pbuf total of first chain */
|
||||||
|
p->tot_len += t->tot_len;
|
||||||
/* chain last pbuf of h chain (p) with first of tail (t) */
|
/* chain last pbuf of h chain (p) with first of tail (t) */
|
||||||
p->next = t;
|
p->next = t;
|
||||||
/* t is now referenced to one more time */
|
/* t is now referenced to one more time */
|
||||||
|
Loading…
Reference in New Issue
Block a user