diff options
Diffstat (limited to 'services/cache/dns.h')
| -rw-r--r-- | services/cache/dns.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/cache/dns.h b/services/cache/dns.h index 78f81e799522..19d0d9f992d1 100644 --- a/services/cache/dns.h +++ b/services/cache/dns.h @@ -238,4 +238,16 @@ struct msgreply_entry* msg_cache_lookup(struct module_env* env, uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, uint16_t flags, time_t now, int wr); +/** + * Remove entry from the message cache. For unwanted entries. + * @param env: with message cache. + * @param qname: query name, in wireformat + * @param qnamelen: length of qname, including terminating 0. + * @param qtype: query type, host order. + * @param qclass: query class, host order. + * @param flags: flags + */ +void msg_cache_remove(struct module_env* env, uint8_t* qname, size_t qnamelen, + uint16_t qtype, uint16_t qclass, uint16_t flags); + #endif /* SERVICES_CACHE_DNS_H */ |
