esp-idf/components/mdns
David Cermak 7f410a0bcb mdns: fix possible race condition when checking DHCP status on WIFI_EVENT_STA_CONNECTED event.
tcpip_adapter_dhcpc_get_status() returns the actual internal value of dhcp client without any locking or TCP/IP stack context call, so when CONNECTED event fired with default settings it started DHCP client in TCP/IP stack context and at the same time mdns event handler checking actual DHCP state, which could still be INIT (not STARTED). Purpose of this check is to enable PCB if DHCP was stopped before setting network interface up (typically static IP settings), so the solutin is to check against TCPIP_ADAPTER_DHCP_STOPPED state
2019-10-15 07:07:00 +00:00
..
include
private_include mdns: use constant size of AAAA answer in mdns packets instead of deriving from lwip struct size, since the struct could contain also zones 2019-09-24 12:12:58 +02:00
test
test_afl_fuzz_host
CMakeLists.txt
Kconfig
component.mk
mdns.c mdns: fix possible race condition when checking DHCP status on WIFI_EVENT_STA_CONNECTED event. 2019-10-15 07:07:00 +00:00
mdns_console.c
mdns_networking.c