/[lwip]/lwip/src/core/pbuf.c
ViewVC logotype

Diff of /lwip/src/core/pbuf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by likewise, Mon Mar 31 23:28:54 2003 UTC revision 1.36 by likewise, Tue Apr 1 09:35:20 2003 UTC
# Line 710  pbuf_chain(struct pbuf *h, struct pbuf * Line 710  pbuf_chain(struct pbuf *h, struct pbuf *
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 */

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26