Files
zephyr/include
Marcin Niestroj 71c31c45c7 net: dns: add dns_resolve_reconfigure() API
So far there was no dedicated mechanism for replacing DNS servers with
new list. Add dns_resolve_reconfigure() API that allows to achieve that
in a thread-safe manner.

Introduce 3rd state in DNS context lifetime by converting from 'bool
is_used' to 'enum dns_resolve_context_state state'. This new
DEACTIVATING state allows to mark a DNS context as busy and safely close
context without holding lock. Closing DNS context with released lock
prevents deadlock in case net_context_close() has to synchronize with a
separate thread executing handler passed to net_context_recv() (which is
the case for example with ESP-AT WiFi driver).

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2021-04-29 08:00:09 -04:00
..
2020-12-18 12:18:28 +01:00
2021-03-19 15:50:21 +01:00
2021-04-19 10:59:23 -04:00
2021-04-22 07:42:58 -04:00
2021-04-28 20:40:00 -04:00
2021-04-22 12:51:01 -04:00
2021-03-19 11:22:17 -04:00
2021-04-22 07:42:58 -04:00