resolve: drop meaningless bitfield specifier

This also rearrange the members to remove holes in the struct.
This commit is contained in:
Yu Watanabe
2021-03-23 21:30:23 +09:00
parent 798c65cf1f
commit 8e95506a22
+3 -2
View File
@@ -36,14 +36,13 @@ enum DnsCacheItemType {
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;
@@ -53,6 +52,8 @@ struct DnsCacheItem {
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"