From 31fde34037d751cae00fb9960c0f05a7e5443c08 Mon Sep 17 00:00:00 2001 From: chendejin Date: Mon, 30 Jun 2025 17:25:13 +0800 Subject: [PATCH 1/2] feat(openthread): move mesh local address judeging function to public --- .../openthread/include/esp_openthread_netif_glue.h | 11 +++++++++++ .../private_include/esp_openthread_netif_glue_priv.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/openthread/include/esp_openthread_netif_glue.h b/components/openthread/include/esp_openthread_netif_glue.h index 3d70c8a7f7..31197195f4 100644 --- a/components/openthread/include/esp_openthread_netif_glue.h +++ b/components/openthread/include/esp_openthread_netif_glue.h @@ -76,6 +76,17 @@ esp_netif_t *esp_openthread_get_netif(void); */ void esp_openthread_register_meshcop_e_handler(esp_event_handler_t handler, bool for_publish); +/** + * @brief This function judges the target address is openthread mesh local or not. + * + * @param[in] address The address. + * + * @return + * - True if the address is openthread mesh local, otherwise false + * + */ +bool is_openthread_internal_mesh_local_addr(const otIp6Address *address); + #ifdef __cplusplus } #endif diff --git a/components/openthread/private_include/esp_openthread_netif_glue_priv.h b/components/openthread/private_include/esp_openthread_netif_glue_priv.h index d5a9d1c072..ceebe3db4d 100644 --- a/components/openthread/private_include/esp_openthread_netif_glue_priv.h +++ b/components/openthread/private_include/esp_openthread_netif_glue_priv.h @@ -36,17 +36,6 @@ void esp_openthread_netif_glue_update(esp_openthread_mainloop_context_t *mainloo */ esp_err_t esp_openthread_netif_glue_process(otInstance *instance, const esp_openthread_mainloop_context_t *mainloop); -/** - * @brief This function judges the target address is openthread mesh local or not. - * - * @param[in] address The address. - * - * @return - * - True if the address is openthread mesh local, otherwise false - * - */ -bool is_openthread_internal_mesh_local_addr(const otIp6Address *address); - #ifdef __cplusplus } #endif From f0b97699557a372ff6ac8d21553b4437d9e29b99 Mon Sep 17 00:00:00 2001 From: Chen Dejin Date: Tue, 1 Jul 2025 02:58:21 +0000 Subject: [PATCH 2/2] fix(openthread/discovery): use mesh local for self-hosted service if OMR is not preferred * esp-openthread: thread_zigbee/esp-openthread@f54481eb0 * openthread: espressif/openthread@b945928d7 * esp-idf: espressif/esp-idf@31fde3403 --- components/openthread/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/openthread/lib b/components/openthread/lib index e76cb2bc04..8028a14145 160000 --- a/components/openthread/lib +++ b/components/openthread/lib @@ -1 +1 @@ -Subproject commit e76cb2bc0491df09b9c3c1312a1cbab3883e3a1a +Subproject commit 8028a14145c7a02e20434d7738cb8cbe345457dd