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 esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
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 components: use new component registration api 2019-06-21 19:53:29 +08:00
test_afl_fuzz_host tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
CMakeLists.txt components: use new component registration api 2019-06-21 19:53:29 +08:00
component.mk Import mDNS changes 2018-01-16 10:58:34 +02:00
Kconfig Correct Kconfigs according to the coding style 2019-01-29 13:37:01 +01:00
mdns_console.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
mdns_networking.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
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