/[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.12 by jani, Thu Jan 23 16:46:01 2003 UTC revision 1.13 by likewise, Mon Jan 27 08:50:28 2003 UTC
# Line 206  udp_input(struct pbuf *p, struct netif * Line 206  udp_input(struct pbuf *p, struct netif *
206      for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {      for(pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
207        DEBUGF(UDP_DEBUG, ("udp_input: pcb local port %d (dgram %d)\n",        DEBUGF(UDP_DEBUG, ("udp_input: pcb local port %d (dgram %d)\n",
208                           pcb->local_port, dest));                           pcb->local_port, dest));
209          /* unconnected? */
210        if((pcb->flags & UDP_FLAGS_CONNECTED) == 0 &&        if((pcb->flags & UDP_FLAGS_CONNECTED) == 0 &&
211              /* destination port matches? */
212            pcb->local_port == dest &&            pcb->local_port == dest &&
213              /* not bound to a specific (local) interface address? or... */
214           (ip_addr_isany(&pcb->local_ip) ||           (ip_addr_isany(&pcb->local_ip) ||
215              /* ...matching interface address? */
216            ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest)))) {            ip_addr_cmp(&(pcb->local_ip), &(iphdr->dest)))) {
217          break;          break;
218        }              }      

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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