/[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.51 by likewise, Sun May 18 22:29:10 2003 UTC revision 1.52 by likewise, Wed Jun 4 09:06:22 2003 UTC
# Line 273  pbuf_alloc(pbuf_layer l, u16_t length, p Line 273  pbuf_alloc(pbuf_layer l, u16_t length, p
273        /*q->next = NULL;*/        /*q->next = NULL;*/
274        /* make previous pbuf point to this pbuf */        /* make previous pbuf point to this pbuf */
275        r->next = q;        r->next = q;
276        /* set length of this pbuf */        /* set total length of this pbuf and next in chain */
277          q->tot_len = rem_len;
278          /* this pbuf length is pool size, unless smaller sized tail */
279        q->len = rem_len > PBUF_POOL_BUFSIZE? PBUF_POOL_BUFSIZE: rem_len;        q->len = rem_len > PBUF_POOL_BUFSIZE? PBUF_POOL_BUFSIZE: rem_len;
280        q->flags = PBUF_FLAG_POOL;        q->flags = PBUF_FLAG_POOL;
281        q->payload = (void *)((u8_t *)q + sizeof(struct pbuf));        q->payload = (void *)((u8_t *)q + sizeof(struct pbuf));

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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