Add support for deleting per-network DNS resolver caches.
This is required when the possible range of NetIds is large to prevent netd consuming excessive amounts of memory. This required replacing the per-cache locks in favor of a single global lock to prevent accesses to deleted caches. Change-Id: I99d058bafea5de743e56075dbed74031da4df63f
This commit is contained in:
committed by
Lorenzo Colitti
parent
7fbc7481cc
commit
41d9a50371
@@ -65,6 +65,9 @@ extern void _resolv_set_nameservers_for_net(unsigned netid,
|
||||
/* flush the cache associated with a certain network */
|
||||
extern void _resolv_flush_cache_for_net(unsigned netid);
|
||||
|
||||
/* delete the cache associated with a certain network */
|
||||
extern void _resolv_delete_cache_for_net(unsigned netid);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _RESOLV_NETID_H */
|
||||
|
||||
Reference in New Issue
Block a user