/[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.21 by likewise, Wed Feb 19 22:07:42 2003 UTC revision 1.22 by jani, Fri Feb 21 16:43:46 2003 UTC
# Line 37  Line 37 
37   *   *
38   */   */
39  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
40  #include "lwip/debug.h"  #include "lwip/opt.h"
41    
42  #include "lwip/def.h"  #include "lwip/def.h"
43  #include "lwip/memp.h"  #include "lwip/memp.h"
# Line 94  udp_lookup(struct ip_hdr *iphdr, struct Line 94  udp_lookup(struct ip_hdr *iphdr, struct
94    
95      udphdr = (struct udp_hdr *)(u8_t *)iphdr + IPH_HL(iphdr) * 4;      udphdr = (struct udp_hdr *)(u8_t *)iphdr + IPH_HL(iphdr) * 4;
96    
97    src = NTOHS(udphdr->src);    src = ntohs(udphdr->src);
98    dest = NTOHS(udphdr->dest);    dest = ntohs(udphdr->dest);
99    
100      pcb = pcb_cache;      pcb = pcb_cache;
101    if(pcb != NULL &&    if(pcb != NULL &&
# Line 177  udp_input(struct pbuf *p, struct netif * Line 177  udp_input(struct pbuf *p, struct netif *
177        
178    DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %u\n", p->tot_len));    DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %u\n", p->tot_len));
179                    
180    src = NTOHS(udphdr->src);    src = ntohs(udphdr->src);
181    dest = NTOHS(udphdr->dest);    dest = ntohs(udphdr->dest);
182    
183  #if UDP_DEBUG  #if UDP_DEBUG
184    udp_debug_print(udphdr);    udp_debug_print(udphdr);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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