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 |
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) || |