Skip to content

net: mdns: missing rfc6732 unicast features #81657

@SynchronicIT

Description

@SynchronicIT

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions