From d2579eec5e1b845b2cf29caddc951dc22f2abb91 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Dec 2015 19:32:46 +0100 Subject: resolved: rework mDNS cache-flush bit handling This adds a new DnsAnswer item flag "DNS_ANSWER_SHARED_OWNER" which is set for mDNS RRs that lack the cache-flush bit. The cache-flush bit is removed from the DnsResourceRecord object in favour of this. This also splits out the code that removes previous entries when adding new positive ones into a new separate call dns_cache_remove_previous(). --- src/resolve-host/resolve-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resolve-host') diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c index bcacb2595c..3e4b52a3a9 100644 --- a/src/resolve-host/resolve-host.c +++ b/src/resolve-host/resolve-host.c @@ -398,7 +398,7 @@ static int resolve_record(sd_bus *bus, const char *name) { if (r < 0) return log_oom(); - r = dns_packet_read_rr(p, &rr, NULL); + r = dns_packet_read_rr(p, &rr, NULL, NULL); if (r < 0) { log_error("Failed to parse RR."); return r; -- cgit v1.2.3-54-g00ecf