mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 13:50:28 +00:00
171f94c307
This commit updates SRP client's `AutoHostAddress` behavior to defer SRP updates on SLAAC address deprecation events. Under `AutoHostAddressMode`, all preferred addresses on Thread Netif, excluding link-local and mesh-local addresses, are registered. If no eligible address is available, then the ML-EID will be registered. This commit adds a new mechanism where if a previously registered address starts being deprecated (e.g., due to an OMR prefix removal from Network Data), the SRP update is deferred. The client will re-register after the deprecation time has elapsed and the address is removed. In the meantime, if any other event triggers the client to send an SRP update, the updated address list will be included in that update. This commit also updates `test_srp_auto_host_address` to validate the newly added behavior.