-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
MinMDNS - do not ask for IP addresses for every SRV record that is seen #33095
Conversation
PR #33095: Size comparison from e48e04a to 339e17b Increases (30 builds for bl602, bl702, cc32xx, efr32, esp32, linux, mbed, nrfconnect, psoc6)
Decreases (4 builds for efr32, linux)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
PR #33095: Size comparison from e48e04a to 2cb52b5 Increases (70 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
Decreases (3 builds for linux)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Just one comment. The PR comment say that a "test" program was added. I don't understand. Can you give a few more details on how to compile the "test" program, and how to run the test you ran so that one could theoretically duplicate your PR validation?
Updated the summary to reference the PR for the test program and how I tested |
…en (project-chip#33095) * Initial version of a test app - ability to just send a packet into the world * Update constants to match a real advertisement * Only resolve IP addresses if we are interested in this path * Fix up logic: this is per peer id * Remove unused include * Undo debug code * Undo extra header add * Add header back, but with full path * Fix up some more headers * Remove unhelpful comment * Move tester program out (will be part of another PR) --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
…en (project-chip#33095) * Initial version of a test app - ability to just send a packet into the world * Update constants to match a real advertisement * Only resolve IP addresses if we are interested in this path * Fix up logic: this is per peer id * Remove unused include * Undo debug code * Undo extra header add * Add header back, but with full path * Fix up some more headers * Remove unhelpful comment * Move tester program out (will be part of another PR) --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
…en (#33119) * MinMDNS - do not ask for IP addresses for every SRV record that is seen (#33095) * Initial version of a test app - ability to just send a packet into the world * Update constants to match a real advertisement * Only resolve IP addresses if we are interested in this path * Fix up logic: this is per peer id * Remove unused include * Undo debug code * Undo extra header add * Add header back, but with full path * Fix up some more headers * Remove unhelpful comment * Move tester program out (will be part of another PR) --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com> * Fix for 1.3 compatibility * Undo submodule update --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
…en (#33118) * MinMDNS - do not ask for IP addresses for every SRV record that is seen (#33095) * Initial version of a test app - ability to just send a packet into the world * Update constants to match a real advertisement * Only resolve IP addresses if we are interested in this path * Fix up logic: this is per peer id * Remove unused include * Undo debug code * Undo extra header add * Add header back, but with full path * Fix up some more headers * Remove unhelpful comment * Move tester program out (will be part of another PR) --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com> * Fix for 1.2 compatibility * Undo submodule update * Bump prompt-toolkit requirement to fix ptpython version update (#30987) * Remove include that is not valid for 1.2 --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com>
Various devices will report their SRV records during browse operations and at boot-up.
General matter nodes however are not interested in these devices unless actively browsing or if explicitly doing operational resolve. This saves the stack trying some A/AAAA queries when a SRV patcket without IP information is received (typically if IP data does not fit in one dnssd packet).
Changes
Tested
all-clusters-app
./scripts/build/build_examples.py --target linux-x64-minmdns build
and run./out/linux-x64-minmdns/minimal-mdns-tester
to send a SRV packet without IPQueryResponder.cpp
to updateQueryResponderBase::MarkAditional
to explicitly filter A/AAAA records to not be marked as report additional items, so that they are not included in replies by default as additional items.