Revert most of "Cleanup: Delete dead code."
This reverts most of commit 2582f02a01.
The DNS cache flushing code needs to be called when routes change.
Change-Id: I5b04121bc428cc6a2e136b6c3269c395bfb4981f
bug:16549455
This commit is contained in:
@@ -61,6 +61,9 @@ int android_getaddrinfofornet(const char *, const char *, const struct addrinfo
|
||||
extern void _resolv_set_nameservers_for_net(unsigned netid,
|
||||
const char** servers, int numservers, const char *domains) __used_in_netd;
|
||||
|
||||
/* flush the cache associated with a certain network */
|
||||
extern void _resolv_flush_cache_for_net(unsigned netid) __used_in_netd;
|
||||
|
||||
/* delete the cache associated with a certain network */
|
||||
extern void _resolv_delete_cache_for_net(unsigned netid) __used_in_netd;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user