]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-packet.c
resolved: rework mDNS cache-flush bit handling
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:32:46 +0000 (19:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Dec 2015 18:40:47 +0000 (19:40 +0100)
commitd2579eec5e1b845b2cf29caddc951dc22f2abb91
treea79b2eedd458f8f93b0bec40a40490b4098e951d
parentea207b639a379b2a0bb8f2cafb0893e406c6152e
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
src/resolve/resolved-dns-answer.h
src/resolve/resolved-dns-cache.c
src/resolve/resolved-dns-packet.c
src/resolve/resolved-dns-packet.h
src/resolve/resolved-dns-rr.h