/[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.1.1.1 by likewise, Sat Oct 19 13:00:32 2002 UTC revision 1.2 by adamdunkels, Wed Oct 23 19:44:32 2002 UTC
# Line 67  int udp_debug_print(struct udp_hdr *udph Line 67  int udp_debug_print(struct udp_hdr *udph
67  void  void
68  udp_init(void)  udp_init(void)
69  {  {
70    #if LWIP_UDP
71    udp_pcbs = pcb_cache = NULL;    udp_pcbs = pcb_cache = NULL;
72    #endif /* LWIP_UDP */
73  }  }
74    
75  #if LWIP_UDP  #if LWIP_UDP
# Line 117  udp_lookup(struct ip_hdr *iphdr, struct Line 119  udp_lookup(struct ip_hdr *iphdr, struct
119    
120      if(pcb == NULL) {      if(pcb == NULL) {
121        for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {        for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
122          if(pcb->local_port == dest &&          if(pcb->remote_port == 0 &&
123               pcb->local_port == dest &&
124             (ip_addr_isany(&pcb->remote_ip) ||             (ip_addr_isany(&pcb->remote_ip) ||
125              ip_addr_cmp(&(pcb->remote_ip), &(iphdr->src))) &&              ip_addr_cmp(&(pcb->remote_ip), &(iphdr->src))) &&
126             (ip_addr_isany(&pcb->local_ip) ||             (ip_addr_isany(&pcb->local_ip) ||

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

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