mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
ced33033e9
This commit introduces a new configuration option `OPENTHREAD_CONFIG_DNS_CLIENT_BIND_UDP_TO_THREAD_NETIF` to control which network interface the DNS client's UDP socket binds to. When this config is set to 1, the socket is bound to the Thread network interface (`Ip6::kNetifThreadInternal`). When the config is set to 0, the socket is bound to the unspecified network interface (`Ip6::kNetifUnspecified`), allowing DNS messages to be sent and received over any available network interface. By default this new config is disabled. A new CMake option `OT_DNS_CLIENT_BIND_UDP_THREAD_NETIF` is also added to allow easy configuration of this feature. The test configurations are updated to ensure both behaviors are covered.