474 |
listening to broadcast or multicast traffic (See SO_REUSE_ADDR and |
listening to broadcast or multicast traffic (See SO_REUSE_ADDR and |
475 |
SO_REUSE_PORT under *BSD). TODO: See where it fits instead, OR |
SO_REUSE_PORT under *BSD). TODO: See where it fits instead, OR |
476 |
combine with implementation of UDP PCB flags. Leon Woestenberg. */ |
combine with implementation of UDP PCB flags. Leon Woestenberg. */ |
477 |
#if 0 |
#ifdef LWIP_UDP_TODO |
478 |
/* port matches that of PCB in list? */ |
/* port matches that of PCB in list? */ |
479 |
else if ((ipcb->local_port == port) && |
else if ((ipcb->local_port == port) && |
480 |
/* IP address matches, or one is IP_ADDR_ANY? */ |
/* IP address matches, or one is IP_ADDR_ANY? */ |
552 |
pcb->remote_port = port; |
pcb->remote_port = port; |
553 |
pcb->flags |= UDP_FLAGS_CONNECTED; |
pcb->flags |= UDP_FLAGS_CONNECTED; |
554 |
/** TODO: this functionality belongs in upper layers */ |
/** TODO: this functionality belongs in upper layers */ |
555 |
#if 0 |
#ifdef LWIP_UDP_TODO |
556 |
/* Nail down local IP for netconn_addr()/getsockname() */ |
/* Nail down local IP for netconn_addr()/getsockname() */ |
557 |
if (ip_addr_isany(&pcb->local_ip) && !ip_addr_isany(&pcb->remote_ip)) { |
if (ip_addr_isany(&pcb->local_ip) && !ip_addr_isany(&pcb->remote_ip)) { |
558 |
struct netif *netif; |
struct netif *netif; |