-
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.
Use incremental resolution for minmdns discover/resolve (#18442)
* Added an incremental minmdns resolver (squash merge of several commits) * Add header file to BUILD.gn * Add chip license * Restyle * Comment update * Add reset to incremental resolve for the common data as well * Remove unused constant * Simplify unit test logic: use records for data serialization and parsing * Updated tests - we now test commissionable nodes as well * Undo changes to Resolver.h * Cleaner naming for the txt parser delegate * Use clearer naming for SRV target - it is called target in RFC so use target host name * Code review update: switch detail logging to tracing events * Code review comments * Updated comments based on code review * More code reivew comments * Fix unit test off by one error * Update based on code review comment * Add string support class for unit testing qnames * Updated usage of Full names - less hardcoding * Name "bit flags" as such to make it clear they have to be bit flags * Update flag setting to be obviously bitflags * Added comments to TestQName helper class * Restyle * Fix unit test build rules * RAII for reset on init, add test for this * Restyle * Make linter happy: no else after return * Some changes to try to use incremental resolver * Code compiles, added some logic that should mostly cover except actual AAAA requests not available * Remove PTR parsing for commissioning - there seems to be no use for this right now * Get rid of mDiscoveryType * Compile works with some logic for AAAA requesting. Not timeouts for AAAA though * Move ActiveResolveAttempt types to Variant. Will start expanding with AAAA query support, so switching to a slightly more extensible way of storing values. * Fix unit test * HeapQName addition * Updated schedule retries. Still need marking * Implement AAAA fetching * Pass on interface id for IP addresses * Use a constant for parallel resolve count * Fix gni * Add expiry logic for SRV resolution * Start adding support for marking IP address resolution completed * Mark AAAA query resolution done * Remove unused constant * Restyle * Fix misplaced return for resolver initialization * Fix typo in message * Remove empty qname test: compiler complains about 0 with 0 comparison * Remove one more unused constant * Restyle * Fix typos * Fix typos * Switch a header-only list from static_library to source_set. Darwin refuses to compile a static library without cpp sources * initialize element count in HealQName * initialize element count in HealQName * Update python unit tests a bit - say when killing the app on purpose in logs, better log coloring and logic (do not hardcode binary bits and rely on modules * Ensure resolverproxy clears up after itself in the destructor: should clear any delegates set to an object about to get deleted * Proper shutdown of resolverproxy in platform implementation * Add a log when test script exits with non-zero exit code * Add more logging to try to help debug repl tests * Add support for script-gdb for python repl scripts, to give a backtrace if a test crashes * Restyle * Fix typo in python test run split * More operationla resolve cleanup. ResolverProxy seems to break MinMdns because of dangling pointers, only patched it up however usage of this object should be removed * Remove usage for script-gdb for yaml tests. Leave that for local runs only * Only unregister the commisionable delegate * Remove some internal debug methods * Remove extra log that shows up during chip tool test list
- Loading branch information
Showing
24 changed files
with
886 additions
and
536 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,6 @@ lark | |
stringcase | ||
|
||
cryptography | ||
|
||
# python unit tests | ||
colorama |
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
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.