commit | 324f9f8c59b6cf8aa32963cddca5d04713c6876e | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Fri Oct 11 18:50:20 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Fri Oct 11 19:44:38 2019 +0900 |
tree | 962c4874d7a3ed2f9ecc969519fc619af61f28b8 | |
parent | 36db77361460ae4b279f6b63bdcba3b2c3d54044 [diff] |
Make resolv_gethostbyaddr() re-entrant The new call signature is closer to gethostbyaddr_r() and no longer relies on thread-local storage for its buffers. This is the last nail in the coffin of res_get_static(). Change-Id: I0673dd5a566e53a47a1c7a5b0afc67f5f28d1361
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.