/[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.7 by likewise, Wed Jan 8 10:09:42 2003 UTC revision 1.8 by likewise, Mon Jan 13 13:24:11 2003 UTC
# Line 58  Line 58 
58    
59  /* The list of UDP PCBs. */  /* The list of UDP PCBs. */
60  #if LWIP_UDP  #if LWIP_UDP
61  static struct udp_pcb *udp_pcbs = NULL;  /*static*/ struct udp_pcb *udp_pcbs = NULL;
62    
63  static struct udp_pcb *pcb_cache = NULL;  static struct udp_pcb *pcb_cache = NULL;
64  #endif /* LWIP_UDP */  #endif /* LWIP_UDP */
# Line 336  udp_send(struct udp_pcb *pcb, struct pbu Line 336  udp_send(struct udp_pcb *pcb, struct pbu
336        
337    if(pcb->flags & UDP_FLAGS_UDPLITE) {    if(pcb->flags & UDP_FLAGS_UDPLITE) {
338      DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %u", p->tot_len));      DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %u", p->tot_len));
339        /* set UDP message length in UDP header */
340      udphdr->len = htons(pcb->chksum_len);      udphdr->len = htons(pcb->chksum_len);
341      /* calculate checksum */      /* calculate checksum */
342      udphdr->chksum = inet_chksum_pseudo(p, src_ip, &(pcb->remote_ip),      udphdr->chksum = inet_chksum_pseudo(p, src_ip, &(pcb->remote_ip),

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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