commit | 2925305b94674b1fc8f3836ceea3b1cbf27e346e | [log] [tgz] |
---|---|---|
author | waynema <waynema@google.com> | Tue Aug 20 11:26:08 2019 +0800 |
committer | waynema <waynema@google.com> | Thu Dec 26 11:59:55 2019 +0800 |
tree | 340b6a20ea59df606d65181d827d95b7d82da028 | |
parent | c727677fabb9b42dfaabaf9d4da1ca51454b874d [diff] |
Support testing for DNS Transport over TCP a. Add a large payload packet (over 512 bytes) with OPT padding for sending DNS query over TCP. b. Create TCP socket and TCP response handle function in dns_responder. c. Add GetNumQueriesForProtocol(protocol) to get the number of queries on TCP/UDP. Test: cd packages/modules/DnsResolver && atest Change-Id: I7c6926502d200980a77f47a3df057f30587521f8
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.