mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
24d633d99d
This commit adds a "auto host address mode" in SRP client. When enabled, host IPv6 addresses are automatically set by SRP client using all the unicast addresses on Thread netif excluding the link-local and mesh-local addresses. If there is no valid address, then Mesh Local EID address is added. The SRP client will automatically re-register when/if addresses on Thread netif are updated (e.g., new addresses are added or existing addresses are removed). This commit updates CLI to add support for new SRP client APIs related to the new feature. It also adds `test_srp_auto_host_address` test to cover the behavior of this feature.