commit | bb90ab3b96bfcc93e1f47b03941ac222e045f4e1 | [log] [tgz] |
---|---|---|
author | Hungming Chen <nuccachen@google.com> | Mon Oct 28 18:20:31 2019 +0800 |
committer | Hungming Chen <nuccachen@google.com> | Tue Oct 29 15:29:36 2019 +0800 |
tree | bf75605649e70ff2e60cbc410b9736a06ddcce8a | |
parent | effead990e4cbc5d2f257214aaf19650494566da [diff] |
resolv_integration_test: Test RRs in authority section and additional section The authority section and additional section may have relevant information about the query. Although getanswer() of packages/modules/DnsResolver/getaddrinfo.cpp doesn't parse the content, check them that don't crash the resolver, just in case. Test: cd packages/modules/DnsResolver && atest Change-Id: I2b441687a574616f775737b469ebb3cc2dbc377e
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.