210 |
} |
} |
211 |
++queuelen; |
++queuelen; |
212 |
|
|
213 |
/* Chain the headers and data pbufs together. */ |
/* Concatenate the headers and data pbufs together. */ |
214 |
pbuf_chain(seg->p, p); |
pbuf_cat(seg->p, p); |
|
pbuf_free(p); |
|
215 |
p = NULL; |
p = NULL; |
216 |
} |
} |
217 |
|
|
285 |
useg->len + queue->len <= pcb->mss) { |
useg->len + queue->len <= pcb->mss) { |
286 |
/* Remove TCP header from first segment. */ |
/* Remove TCP header from first segment. */ |
287 |
pbuf_header(queue->p, -TCP_HLEN); |
pbuf_header(queue->p, -TCP_HLEN); |
288 |
pbuf_chain(useg->p, queue->p); |
pbuf_cat(useg->p, queue->p); |
|
/* Free buffer which was merged. Note that the previous pbuf_chain call |
|
|
* will have incremented the ref count, so here the ref count will still |
|
|
* be 1 for the 1 pointer still being used on this buffer. */ |
|
|
pbuf_free(queue->p); |
|
289 |
useg->len += queue->len; |
useg->len += queue->len; |
290 |
useg->next = queue->next; |
useg->next = queue->next; |
291 |
|
|