lwip/src/core
Axel Lin 156ad0dbf5 udp_bind: Fix the logic to check both pcbs have REUSEADDR set
The code for #if SO_REUSE case does not match the comment.
By default, we don't allow to bind to a port that any other udp
PCB is already bound to, unless *all* PCBs with that port have tha
REUSEADDR flag set.

Which means we want to omit checking for the same port if both pcbs
have REUSEADDR set. Fix the logic accordingly.

Fixes: d0348e0c60 ("task #6995: Implement SO_REUSEADDR (correctly)")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-01-11 12:19:13 +01:00
..
ipv4 Correct comment word usage in ip4_frag.c 2015-12-08 10:13:56 -06:00
ipv6 Remove unnecessary p->len checking for pbuf_alloc calls with PBUF_RAM type 2015-12-05 21:21:59 +01:00
def.c minor/coding style: removed spaces before line ending 2015-10-06 21:08:28 +02:00
dns.c dns: Remove always true test in dns_alloc_random_port 2015-12-02 22:37:26 +01:00
inet_chksum.c minor: fixed coding style (lwip style) 2015-10-07 10:03:12 +02:00
init.c Completely decouple SNMP stack from lwIP core by using private memory pools; 2015-11-12 21:21:14 +01:00
mem.c Implement possibility to declare private memory pools. This is useful to decouple some apps from the core (SNMP stack) or make contrib app useage simpler (httpserver_raw) . 2015-11-12 08:45:04 +01:00
memp.c memp: Fixup LWIP_HOOK_MEMP_AVAILABLE() hook 2015-12-05 21:32:14 +01:00
netif.c Rename snmp_mib2.h to snmp.h so source compatibility for user netif implementations is preserved 2015-11-12 21:25:42 +01:00
pbuf.c Use SYS_ARCH_SET macro at appropriate places 2015-12-02 22:51:08 +01:00
raw.c Slightly improve raw_remove()/udp_remove() implementation 2015-11-19 07:21:00 +01:00
stats.c started to move "private" header files containing implementation details to "lwip/priv/" include directory to seperate the API from the implementation. 2015-10-09 21:58:58 +02:00
sys.c fixed bug #34884: sys_msleep() body needs to be surrounded with '#ifndef sys_msleep' 2011-11-23 20:58:19 +01:00
tcp_in.c Drop #if TCP_DEBUG guard around tcp_debug_print_state calls 2015-12-02 22:32:42 +01:00
tcp_out.c tcp_out: Use LWIP_DBG_LEVEL_SERIOUS instead of magic number 2015-12-06 21:38:12 +01:00
tcp.c tcp_bind/tcp_connect: Omit checking for the same port if no port specified 2016-01-11 12:16:27 +01:00
timers.c started to move "private" header files containing implementation details to "lwip/priv/" include directory to seperate the API from the implementation. 2015-10-09 21:58:58 +02:00
udp.c udp_bind: Fix the logic to check both pcbs have REUSEADDR set 2016-01-11 12:19:13 +01:00