Skip to content
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

net: mdns: missing rfc6732 unicast features #81657

Open
SynchronicIT opened this issue Nov 20, 2024 · 2 comments
Open

net: mdns: missing rfc6732 unicast features #81657

SynchronicIT opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
area: Networking Enhancement Changes/Updates/Additions to existing features

Comments

@SynchronicIT
Copy link
Contributor

In the current mDNS implementation, all responses are sent to the multicast address. Independent of its source, unicast-response bit or one of the other cases mentioned in RFC 6732.
Chapter 5.1, 5.4, 6.7 and introduction of chapter 6, derive different use-cases and when to use the unicast responses.

Unicast responses would allow lightweight clients or clients who do not have multicast access (read: docker images) to discover zephyr hosts and their services.

Changes to be made a in mdns_responder.c to send_response(..) which currently always creates a multicast destination address, but to follow the rules as specified by rfc6732.
The first low hanging fruit would be to support the legacy or one-shot requests, by responding over unicast if the source port is not 5353.

@SynchronicIT SynchronicIT added the Enhancement Changes/Updates/Additions to existing features label Nov 20, 2024
@jukkar
Copy link
Member

jukkar commented Nov 21, 2024

@SynchronicIT thanks for the report. You seem to have investigated this already in sources, are you able / do you plan to send PR for this?

@SynchronicIT
Copy link
Contributor Author

SynchronicIT commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

4 participants