mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-31 13:10:35 +00:00
Add filtering of arbitrary RR-types.
This commit is contained in:
8 files changed
+102
-90
No files matched your search
+2
-13
@@ -829,19 +829,8 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
|
||||
break;
|
||||
}
|
||||
|
||||
if (rcode == NOERROR)
|
||||
{
|
||||
size_t modified = 0;
|
||||
|
||||
if (option_bool(OPT_FILTER_A))
|
||||
modified = rrfilter(header, &n, RRFILTER_A);
|
||||
|
||||
if (option_bool(OPT_FILTER_AAAA))
|
||||
modified += rrfilter(header, &n, RRFILTER_AAAA);
|
||||
|
||||
if (modified > 0)
|
||||
ede = EDE_FILTERED;
|
||||
}
|
||||
if (rcode == NOERROR && rrfilter(header, &n, RRFILTER_CONF) > 0)
|
||||
ede = EDE_FILTERED;
|
||||
|
||||
if (doctored)
|
||||
cache_secure = 0;
|
||||
|
||||
Reference in new issue
Block a user