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

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

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

revision 1.30 by likewise, Wed Mar 26 10:59:31 2003 UTC revision 1.31 by likewise, Sun Mar 30 00:39:03 2003 UTC
# Line 413  udp_send(struct udp_pcb *pcb, struct pbu Line 413  udp_send(struct udp_pcb *pcb, struct pbu
413    
414    /* did we chain a header? */    /* did we chain a header? */
415    if (q != p) {    if (q != p) {
416      /* chained header still in front of given pbuf? */      /* free the header */
417      if (q->next == p) {      pbuf_free(q);
       DEBUGF(UDP_DEBUG | DBG_TRACE | 2, ("udp_send: dechaining and freeing header pbuf %p\n", (void *)q));  
       /* detach the header prepended earlier */  
       pbuf_dechain(q);  
       /* free the header */  
       pbuf_free(q);  
     } else {  
       /* the header now points to something else then the given pbuf */  
       /* this can only happen if queueing is enabled */  
       LWIP_ASSERT("ARP_QUEUEING == 1\n", ARP_QUEUEING == 1);  
       DEBUGF(UDP_DEBUG | DBG_TRACE | 2, ("udp_send: pbuf header %p not freed, seems queued.\n", (void *)q));  
         }  
418    }    }
419          
420  #ifdef UDP_STATS  #ifdef UDP_STATS
421    ++lwip_stats.udp.xmit;    ++lwip_stats.udp.xmit;
422  #endif /* UDP_STATS */  #endif /* UDP_STATS */

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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