mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
8612d40adf
This commit fixes the problem where OpenThread mDNS responder always sends responses to port 5353, ignoring the source port of the query. According to RFC 6762, a mDNS responder should support one-shot multicast DNS queries by sending the response to the source address and source port of the query. Changes: - Captured the actual source port from incoming queries in Simulation and POSIX platforms. - Updated otPlatMdnsSendUnicast in Simulation platform to use the provided destination port. - Verified that legacy unicast responses correctly cap TTL to 10 seconds as required by RFC 6762 section 6.7.