summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authornuccachen <nuccachen@google.com>2018-11-29 17:41:12 +0800
committerHungming Chen <nuccachen@google.com>2018-12-14 19:24:32 +0800
commit989d2233cf43370e562643e4a983873fc8dbff84 (patch)
tree56bdb4b94691e5192fe8850a7ba9969c82bdb845 /server/NetworkController.cpp
parenta313f658368e5503d8bf73d1b86abf67e8797d24 (diff)
Assign dns cache size without checking environment variable ANDROID_DNS_MODE
Since resolver functions have been moved from libc to libnetd_resolv, don't need to determine if the caller is Netd via environment variable anymore. Another reason is that if the caller sets dns server without setting environment variable ANDROID_DNS_MODE with "local". The size of dns cache will be set to 0. The zero size may cause unexpected hash table index in _cache_lookup_p() because the index is counted by mod 0 (cache size). Test: netd_{unit,integration}_test pass resolv_integration_test pass Change-Id: I3988909ce2df6c26bdfa02c993bb7a1a97dc7950
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions