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

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

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

revision 1.27.2.3 by jani, Tue Oct 28 11:44:43 2003 UTC revision 1.27.2.4 by jani, Mon Nov 3 07:57:20 2003 UTC
# Line 210  tcp_enqueue(struct tcp_pcb *pcb, void *a Line 210  tcp_enqueue(struct tcp_pcb *pcb, void *a
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    
# Line 286  tcp_enqueue(struct tcp_pcb *pcb, void *a Line 285  tcp_enqueue(struct tcp_pcb *pcb, void *a
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    

Legend:
Removed from v.1.27.2.3  
changed lines
  Added in v.1.27.2.4

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