mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
1e79496c57
This commit adds support for handling mDNS service name conflicts by automatically renaming the service when a collision is detected during registration. The new naming scheme appends a suffix based on the last two bytes of the device's Extended Address (e.g., " #AB1E"). If this name also conflicts, an additional index is appended (e.g., " #AB1E (1)"). Changes: - Added `mServiceRenameIndex` to `Manager` and `EphemeralKeyManager` to track re-naming attempts. - Updated `otBorderAgentSetMeshCoPServiceBaseName()` and CLI documentation to reflect the new naming and conflict resolution logic. - Updated `OT_BORDER_AGENT_MESHCOP_SERVICE_BASE_NAME_MAX_LENGTH` to ensure the full name fits within the 63-character DNS label limit. - Added Nexus tests to verify the renaming logic under conflict.