commit | ce61df396fab052f6736d287e0e5d338e07760d8 | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Tue Jun 15 21:50:56 2021 +0800 |
committer | chenbruce <chenbruce@google.com> | Fri Jun 25 18:57:33 2021 +0800 |
tree | f5b69ff26174276e57111b4761c6d9bce13c0553 | |
parent | 3b791985645d7448b2e8becdd711ee90a7bce85d [diff] |
Add mDNS .local resolution test cases When testing mDNS IPv4 test cases, they should add routing rules for MDNS packets, or MDNS packets won't know the destination is mDNS muticast address "224.0.0.251".For IPv6 test cases, they don't need to do the same thing. Bug: 140857615 Test: cd packages/modules/DnsResolver && atest Change-Id: Iadd724f8917496516db43fd325785caf2b3e31f2
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.