commit | 425d16ee3c509ffe282a1b9bf072a334f6c6b563 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Wed May 05 21:40:42 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Thu Jul 29 02:25:25 2021 +0000 |
tree | 608c32b8d9a4947887c5336d3f68378972ca7c5f | |
parent | 88d5702da2fd9d57f496babe594e967e7417b41d [diff] |
Remove parseServer IPAddress and IPSockAddr are well-tested utilities. Use them in DnsTlsServer so that many code related to sockaddr_storage can be removed. Bug: 186177613 Test: cd packages/modules/DnsResolver && atest Change-Id: I59f59f6f50bd7b376fa0f8775c8999eee7cf9004
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.