commit | 36db77361460ae4b279f6b63bdcba3b2c3d54044 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Fri Oct 11 18:03:02 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Fri Oct 11 19:44:38 2019 +0900 |
tree | 6bb6850363cd020c781df7c624b759ad6d690b6c | |
parent | 852c08e595c9aa40a7bc7e5df5f298e32f6d6af3 [diff] |
Make resolv_gethostbyname() re-entrant The new call signature is closer to gethostbyname2_r() and no longer relies on thread-local storage for its buffers. res_get_static() is now down to a single caller. Test: m, flash, atest Change-Id: Ic6e2c0292fece31c2586a81d8fb6a8df20c4f9f5
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.