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)); |