710 |
LWIP_ASSERT("t != NULL", t != NULL); |
LWIP_ASSERT("t != NULL", t != NULL); |
711 |
|
|
712 |
/* proceed to last pbuf of chain */ |
/* proceed to last pbuf of chain */ |
713 |
for (p = h; p != NULL; p = p->next) { |
for (p = h; p->next != NULL; p = p->next) { |
714 |
/* add total length of second chain to all totals of first chain */ |
/* add total length of second chain to all totals of first chain */ |
715 |
p->tot_len += t->tot_len; |
p->tot_len += t->tot_len; |
716 |
} |
} |
717 |
|
/* add total length of second chain to last pbuf total of first chain */ |
718 |
|
p->tot_len += t->tot_len; |
719 |
/* chain last pbuf of h chain (p) with first of tail (t) */ |
/* chain last pbuf of h chain (p) with first of tail (t) */ |
720 |
p->next = t; |
p->next = t; |
721 |
/* t is now referenced to one more time */ |
/* t is now referenced to one more time */ |