Lines Matching refs:item
63 #define DNS_CACHE_ITEM_IS_PRIMARY(item) (!!(item)->answer) argument
65 static const char *dns_cache_item_type_to_string(DnsCacheItem *item) { in dns_cache_item_type_to_string() argument
66 assert(item); in dns_cache_item_type_to_string()
68 switch (item->type) { in dns_cache_item_type_to_string()
80 return dns_rcode_to_string(item->rcode); in dns_cache_item_type_to_string()
687 DnsAnswerItem *item; in dns_cache_put() local
734 DNS_ANSWER_FOREACH_ITEM(item, answer) { in dns_cache_put()
737 if (!FLAGS_SET(item->flags, DNS_ANSWER_CACHEABLE) || in dns_cache_put()
738 !rr_eligible(item->rr)) in dns_cache_put()
746 primary = dns_resource_key_match_rr(key, item->rr, NULL); in dns_cache_put()
750 … primary = dns_resource_key_match_cname_or_dname(key, item->rr->key, NULL); in dns_cache_put()
761 first = hashmap_get(c->by_key, item->rr->key); in dns_cache_put()
768 item->rr, in dns_cache_put()
771 … ((item->flags & DNS_ANSWER_AUTHENTICATED) ? SD_RESOLVED_AUTHENTICATED : 0) | in dns_cache_put()
773 item->flags & DNS_ANSWER_SHARED_OWNER, in dns_cache_put()
776 item->ifindex, in dns_cache_put()
847 DNS_ANSWER_FOREACH_ITEM(item, answer) { in dns_cache_put()
848 if ((item->flags & DNS_ANSWER_CACHEABLE) == 0) in dns_cache_put()
851 dns_cache_remove_by_key(c, item->rr->key); in dns_cache_put()
1069 DnsAnswerItem *item; in dns_cache_lookup() local
1071 DNS_ANSWER_FOREACH_ITEM(item, j->answer) { in dns_cache_lookup()
1074 item->rr, in dns_cache_lookup()
1075 item->ifindex, in dns_cache_lookup()
1076 item->flags, in dns_cache_lookup()
1077 item->rrsig, in dns_cache_lookup()