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:
Paul Jensen
2014-08-06 17:34:22 +00:00
parent 61833de613
commit 1544eae56e
2 changed files with 14 additions and 0 deletions

View File

@@ -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;