commit | 3b791985645d7448b2e8becdd711ee90a7bce85d | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Tue Jun 15 21:40:05 2021 +0800 |
committer | chenbruce <chenbruce@google.com> | Fri Jun 25 18:56:29 2021 +0800 |
tree | 463938241b379a0c68a87d304c5b9b1d870fd7e7 | |
parent | ceb3c02582b565148db3ee0f595f6705543974d9 [diff] |
Add sockets for mDns .local resolution testing In DnsResponder, modifying createListeningSocket() to add sockets to handle mDns packets. Bug: 140857615 Test: cd packages/modules/DnsResolver && atest Change-Id: I533c26d681586284f78e5ed571af632c3ebda049
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.