commit | 44fd92c32dab58107b34b6b9c7080f2fc5db3174 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Apr 11 08:41:57 2024 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon May 20 12:36:17 2024 +0900 |
tree | a95d6f3e8ff3220c80e4d7953137dd2033d02493 | |
parent | 5cfb3f44b9955a3c28a89fcfa72ba0303be1c962 [diff] |
Make resolv_set_nameservers take the AIDL parcel directly. Currently, the code unparcels the parcel and passes its elements to resolv_set_nameservers as function parameters. These are then copied to other data structures. Instead of doing this, just pass the parcel around directly. It simplifies the code, and it makes it much easier to extend the parcel in the future. Test: m Change-Id: I924b05980dae5c8a343f612f09dbd83d6f01e287
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.