Skip to content

mdns component does not support query for subtypes (IDFGH-15167) #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sv-abl opened this issue Apr 23, 2025 · 0 comments
Open

mdns component does not support query for subtypes (IDFGH-15167) #805

sv-abl opened this issue Apr 23, 2025 · 0 comments
Assignees
Labels
Status: Opened Issue is new Type: Feature Request Feature Request for esp-protocols

Comments

@sv-abl
Copy link

sv-abl commented Apr 23, 2025

Is your feature request related to a problem?

Neither current master (current release of mDNS component is v1.8.2 at the time of writing) nor the current state of the refactoring in PR #776 does support querying for subtypes as described in section 7.1 Selective Instance Enumeration (Subtypes) of RFC 6763: DNS-Based Service Discovery (https://www.rfc-editor.org/rfc/rfc6763.html#section-7.1).

Describe the solution you'd like.

New functions allowing to query / browse for a certain subtype only should be added ot the mdns component API.

Describe alternatives you've considered.

Alternatively, the existing API (signature of mdns_query, etc.) could be expanded by adding at least one additional argument to allow querying for a certain subtype if desired.

(Just for clarity: prefixing e.g. "_my-service-type" by some string like "mysubtype." and supplying that as service_type to, e.g., mdns_query is no possible workaround, as the subtype must become a distinct label in the mDNS packet, and additionally it may consist of arbitrary 8-bit data values, including \0)

Additional context.

Note that announcing subtypes is already supported, e.g., using mdns_service_subtype_add_for_host, although the current implementation has some design flaw as discussed in issue #804.

@sv-abl sv-abl added the Type: Feature Request Feature Request for esp-protocols label Apr 23, 2025
@github-actions github-actions bot changed the title mdns component does not support query for subtypes mdns component does not support query for subtypes (IDFGH-15167) Apr 23, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Feature Request Feature Request for esp-protocols
Projects
None yet
Development

No branches or pull requests

3 participants