Overhaul mDNS to allow arbitrary records (supports DNS Service Discovery)#1326
Open
george-palmsens wants to merge 7 commits intoFreeRTOS:mainfrom
Open
Overhaul mDNS to allow arbitrary records (supports DNS Service Discovery)#1326george-palmsens wants to merge 7 commits intoFreeRTOS:mainfrom
george-palmsens wants to merge 7 commits intoFreeRTOS:mainfrom
Conversation
2dfe4dc to
abd89c5
Compare
This adds support for DNS-SD
abd89c5 to
0345238
Compare
17f3a0d to
cc0fd7a
Compare
cc0fd7a to
1a2a462
Compare
1a2a462 to
decb55b
Compare
Contributor
Author
|
Apologies for spamming the CI. I have added a back compatibility shim for the old style DNS hooks. Defining |
b213508 to
e0189d1
Compare
3ec6954 to
e95ae89
Compare
4a30acb to
af4bbfa
Compare
af4bbfa to
64e6fbf
Compare
7a3d07a to
6de96b6
Compare
Contributor
Author
|
Added support for "Additional RRs" in the generated response, with a corresponding hook. This is a |
6de96b6 to
56ec79c
Compare
56ec79c to
7e9afdf
Compare
Contributor
|
Hi @george-palmsens , you're doing a great job. Please allow me time to review and test the changes, most importantly: keeping thing downward compatible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the DNS hook to return a list of records to serve over mDNS. By setting an appropriate set of records, this satisfies DNS-SD (Avahi, Bonjour, etc).
An "appropriate set of records" looks like:
Other things that have been changed to accomodate this:
Checklist:
I have tested my changes locally, and verified the device is discoverable through Avahi. I have not run an application level test suite.
I have added a shim that allows the old hooks to still work via a back-compatibility flag, I hope that is a fine approach.
I have added the necessary unit tests that reach 100% coverage. A few isolated cases had to be ignored from the coverage report since they are defensive checks that are already caught earlier in the logic.
Requests for assistance:
Related Issue
See #1284
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.