OVMS3-idf/components/mdns
David Cermak 98450e80e5 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-11-01 07:51:49 +00:00
..
include mdns: use const char* for mdns txt items types to remove warning when assigning 2019-05-03 16:31:32 +02:00
private_include mdns: fix ignoring mdns packet with some invalid name entries in question field 2019-06-20 14:25:12 +02:00
test components: use new component registration api 2019-06-21 19:53:29 +08:00
test_afl_fuzz_host mdns tests: adapt mdns fuzzer test to compile with event loop library 2019-05-27 16:31:25 +02: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.c mdns: fix possible race condition when checking DHCP status on WIFI_EVENT_STA_CONNECTED event. 2019-11-01 07:51:49 +00:00
mdns_console.c Import mDNS changes 2018-01-16 10:58:34 +02:00
mdns_networking.c mdns: fix memory leak in pbuf if tcpipadapter failed to get netif 2019-02-15 15:59:11 +01:00