struct DnsCacheItem {
DnsCacheItemType type;
+ int rcode;
DnsResourceKey *key; /* The key for this item, i.e. the lookup key */
DnsResourceRecord *rr; /* The RR for this item, i.e. the lookup value for positive queries */
DnsAnswer *answer; /* The full validated answer, if this is an RRset acquired via a "primary" lookup */
DnsPacket *full_packet; /* The full packet this information was acquired with */
- int rcode;
usec_t until;
- bool shared_owner:1;
uint64_t query_flags; /* SD_RESOLVED_AUTHENTICATED and/or SD_RESOLVED_CONFIDENTIAL */
DnssecResult dnssec_result;
unsigned prioq_idx;
LIST_FIELDS(DnsCacheItem, by_key);
+
+ bool shared_owner;
};
/* Returns true if this is a cache item created as result of an explicit lookup, or created as "side-effect"