lwip/src/core
Axel Lin 1d4cbe768d netif: Add proper lock protect for accessing netif->loop_first
All the reset part of the code accessing netif->loop_first has lock protection,
the only missing part is "while (netif->loop_first != NULL)".
Fix it by adding lock protect around the while loop.

Also convert the code to use while{} loop instead of do .. while{} loop,
then we can avoid NULL test for in pointer in each loop and reduce a level of indent.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-11-25 13:02:23 +01:00
..
ipv4 fixed bug #49676 (Possible endless loop when parsing dhcp options) & added unit test for that 2016-11-25 10:03:43 +01:00
ipv6 ipv4/ipv6: restrict loopback-destined traffic 2016-11-22 20:51:36 +01:00
def.c Document non-standard functions in sys abstraction layer 2016-10-23 10:34:52 +02:00
dns.c dns_enqueue(): minor readability improvement: add local variable "age" to store result of subtraction 2016-11-22 21:34:12 +01:00
inet_chksum.c Cleanup hton*/ntoh* function handling and platform abstraction 2016-10-06 12:55:57 +02:00
init.c WND_SCALE: duplicate define check & doc cleanup 2016-11-11 16:06:54 -06:00
ip.c Some documentation cleanups and include more comments that have been already in code into doxygen docs 2016-08-07 10:05:34 +02:00
mem.c mem: Simplify the code for try bigger pool in mem_malloc 2016-08-20 11:29:57 +02:00
memp.c memp.c: Only check for overflow/underflow if an element could be allocated 2016-11-16 20:15:51 +01:00
netif.c netif: Add proper lock protect for accessing netif->loop_first 2016-11-25 13:02:23 +01:00
pbuf.c Minor documentation update 2016-10-16 19:07:55 +02:00
raw.c raw, udp, tcp connect() does NOT need to match exact IP type - when PCB is bound to IPADDR_ANY_TYPE, it is OK to connect to IPv4 or IPv6 2016-11-16 23:39:43 +01:00
stats.c memp: fixed compiling various combinations of memp stats (display etc.) 2016-07-08 08:21:57 +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 Make lwIP compile with clang -Wdocumentation -> several documentation fixes 2016-10-09 12:21:39 +02:00
tcp_out.c Optimize passing contiguous nocopy buffers to tcp_write 2016-11-24 11:27:34 +01:00
tcp.c raw, udp, tcp connect() does NOT need to match exact IP type - when PCB is bound to IPADDR_ANY_TYPE, it is OK to connect to IPv4 or IPv6 2016-11-16 23:39:43 +01:00
timeouts.c Make sys_restart_timeouts public also for !NO_SYS targets 2016-10-07 20:31:15 +02:00
udp.c Fix bug #49662: UDP layer should filter incoming multicast datagrams against the bound IP address 2016-11-23 12:46:35 +01:00