Skip to content

Conversation

@david-cermak
Copy link
Collaborator

  • unlike discoveries, where they need to stay in additional section
  • Quick fix of regression b7b8c5d

The hotfix makes _mdns_create_answer_from_service() aware of whether a query is service discovery or an instance-level Q/A without broad architectural changes.
We detect instance questions via question->host and introduce is_instance_question / is_any_instance_question. For service-browse queries (QTYPE=PTR or QTYPE=ANY where there is no instance label, e.g. _service._tcp.local), behavior remains: the PTR goes in the Answer section, and SRV/TXT plus A/AAAA go into the Additional section, matching RFC 6763 §12.1 and Thread expectations.
For instance-level ANY queries (Instance._service._tcp.local, QTYPE=ANY), we now treat them like SRV/TXT Q/A: SRV and TXT for that instance are placed in the Answer section, with A/AAAA in Additional and no unrelated PTR answer created. Direct SRV/TXT queries are unchanged. This should make Bonjour Conformance Test happier while preserving the discovery behavior that Thread certification requires.

unlike discoveries, where they need to stay in additional section
Quick fix of regression b7b8c5d
@david-cermak david-cermak self-assigned this Nov 26, 2025
@david-cermak david-cermak changed the base branch from master to release-mdns-v1.9 November 26, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant