bool authenticated,
DnssecResult dnssec_result,
uint32_t nsec_ttl,
- usec_t timestamp,
int owner_family,
const union in_addr_union *owner_address) {
DnsAnswerItem *item;
DnsAnswerFlags flags;
unsigned cache_keys;
+ usec_t timestamp;
int r;
assert(c);
/* Make some space for our new entries */
dns_cache_make_space(c, cache_keys);
- if (timestamp <= 0)
- timestamp = now(clock_boottime_or_monotonic());
+ timestamp = now(clock_boottime_or_monotonic());
/* Second, add in positive entries for all contained RRs */
DNS_ANSWER_FOREACH_ITEM(item, answer) {
dns_transaction_process_reply(t, p);
}
- dns_cache_put(&scope->cache, scope->manager->enable_cache, NULL, DNS_PACKET_RCODE(p), p->answer, NULL, 0, _DNSSEC_RESULT_INVALID, (uint32_t) -1, 0, p->family, &p->sender);
+ dns_cache_put(&scope->cache, scope->manager->enable_cache, NULL, DNS_PACKET_RCODE(p), p->answer, NULL, false, _DNSSEC_RESULT_INVALID, (uint32_t) -1, p->family, &p->sender);
} else if (dns_packet_validate_query(p) > 0) {
log_debug("Got mDNS query packet for id %u", DNS_PACKET_ID(p));