[Feature sync] Fix issue where multiple SRV records with same host are not fully resolved
For Matter, a device may have a single host with multiple A/AAAA records, but multiple PTR/SRV pairs that represent different operational identities for the same device. Currently, MdnsResponseDecoder looks for only a single matching MdnsResponse by hostname when looping through the A/AAAA records (which will leave the second response incomplete). Updated with a flag that will allow returning all MdnsResponses which match the given hostname and update the Inet records for all responses. Bug: 254155029 Test: atest FrameworksNetTests Verified with a Matter device with two identities that the second response is incomplete without this change. Additionally, added unit tests to verify the before and after behavior with a real packet capture from the device. Change-Id: Ic4a101b305c039f6cd7fd557246a2bfdaf0c781a
Loading
Please register or sign in to comment