-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mdns: Allow multiple operational advertisements (#8610)
* Mdns: Allow multiple operational advertisements - moved CheckOnlyServer into its own file and created a minimal mdns implementation that uses the CheckOnlyServer - Added a () constructor to the CheckOnlyServer with an option to set the test suite after. - fixed a bug where the truncated flag was not being set properly - Added a function to the response allocator to determine if given ResourceRecord is there - Added a check at the start of operational to check for the given SRV record in the allocator - these records are unique to each fabric / node. If a different fabric/node is identified, the Advertise feature will start a new query responder to append records rather than replacing. - added tests for operational mdns records with single and multiple fabrics. * Restyled by whitespace * Restyled by gn * Don't build Advertiser test for zephyr. Zephyr uses a monolothic lib that already links in a version of the mdns library. * Restyled by gn * Change style. * Missed two ranged fors. * Remove :mdns from deps. Apparently the default is the same as the directory name. TIL. https://gn.googlesource.com/gn/+/main/docs/reference.md#implicit-names * New way of doing name. Flat allocator is overkill for a local variable because the individual peices don't go out of scope before the QName. * brute force server swap. * Restyled by gn * BUILD file rule isn't used anymore. * Add RAII-style server swapper class. * Remove include. * Change explicit variable type to auto. Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
55e5f19
commit f679d45
Showing
13 changed files
with
668 additions
and
175 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.