280 |
pbuf_header(p, -UDP_HLEN); |
pbuf_header(p, -UDP_HLEN); |
281 |
if (pcb != NULL) { |
if (pcb != NULL) { |
282 |
snmp_inc_udpindatagrams(); |
snmp_inc_udpindatagrams(); |
283 |
pcb->recv(pcb->recv_arg, pcb, p, &(iphdr->src), src); |
/* callback */ |
284 |
|
if (pcb->recv != NULL) |
285 |
|
{ |
286 |
|
pcb->recv(pcb->recv_arg, pcb, p, &(iphdr->src), src); |
287 |
|
} |
288 |
#if SO_REUSE |
#if SO_REUSE |
289 |
/* First socket should receive now */ |
/* First socket should receive now */ |
290 |
if(reuse_port_1 || reuse_port_2) { |
if (reuse_port_1 || reuse_port_2) { |
291 |
/* We want to search on next socket after receiving */ |
/* We want to search on next socket after receiving */ |
292 |
pcb_temp = pcb->next; |
pcb_temp = pcb->next; |
293 |
|
|
294 |
if(reuse_port_1) { |
if (reuse_port_1) { |
295 |
/* We are searching connected sockets */ |
/* We are searching connected sockets */ |
296 |
reuse_port_1 = 0; |
reuse_port_1 = 0; |
297 |
reuse_port_2 = 0; |
reuse_port_2 = 0; |