Searched refs:cache (Results 1 - 13 of 13) sorted by relevance

/systemd/src/resolve/
H A Dresolved-dns-cache.h45 int dns_cache_check_conflicts(DnsCache *cache, DnsResourceRecord *rr, int owner_family, const union in_addr_union *owner_address);
47 void dns_cache_dump(DnsCache *cache, FILE *f);
48 bool dns_cache_is_empty(DnsCache *cache);
50 unsigned dns_cache_size(DnsCache *cache);
52 int dns_cache_export_shared_to_packet(DnsCache *cache, DnsPacket *p);
H A Dresolved-dns-cache.c23 #include "resolved-dns-cache.h"
27 /* Never cache more than 4K entries. RFC 1536, Section 5 suggests to
31 /* We never keep any item longer than 2h in our cache */
150 * the cache to grow beyond CACHE_MAX, but only when we shall
151 * add more RRs to the cache than CACHE_MAX at once. In that
152 * case the cache will be emptied completely otherwise. */
386 /* Never cache pseudo RRs */
402 log_debug("Removed zero TTL entry from cache: %s", key_str);
404 log_debug("Not caching zero TTL cache entry: %s", key_str);
457 log_debug("Added positive cache entr
946 dns_cache_check_conflicts(DnsCache *cache, DnsResourceRecord *rr, int owner_family, const union in_addr_union *owner_address) argument
982 dns_cache_export_shared_to_packet(DnsCache *cache, DnsPacket *p) argument
1031 dns_cache_dump(DnsCache *cache, FILE *f) argument
1076 dns_cache_is_empty(DnsCache *cache) argument
1083 dns_cache_size(DnsCache *cache) argument
[all...]
H A Dresolved-dns-scope.h26 #include "resolved-dns-cache.h"
50 DnsCache cache; member in struct:DnsScope
69 * the zone or the cache), and the hashmap only tracks the
H A Dresolved-resolv-conf.c130 /* Unconditionally flush the cache when /etc/resolv.conf is
135 * enough to flush the global unicast DNS cache. */
137 dns_cache_flush(&m->unicast_scope->cache);
H A Dresolved-dns-scope.c127 dns_cache_flush(&s->cache);
956 /* Check for conflicts against the local cache. If so,
958 r = dns_cache_check_conflicts(&scope->cache, p->answer->items[i].rr, p->family, &p->sender);
992 if (!dns_cache_is_empty(&s->cache)) {
994 dns_cache_dump(&s->cache, f);
H A Dresolved-mdns.c98 * and complete it. Also store the new information in scope's cache.
123 dns_cache_put(&scope->cache, NULL, DNS_PACKET_RCODE(p), p->answer, false, (uint32_t) -1, 0, p->family, &p->sender);
H A Dresolved-bus.c1276 size += dns_cache_size(&s->cache);
1277 hit += s->cache.n_hit;
1278 miss += s->cache.n_miss;
1330 s->cache.n_hit = s->cache.n_miss = 0;
H A Dresolved-link.c302 /* When switching from non-DNSSEC mode to DNSSEC mode, flush the cache. Also when switching from the
305 dns_cache_flush(&l->unicast_scope->cache);
583 dns_cache_flush(&l->unicast_scope->cache);
H A Dresolved-dns-server.c666 dns_cache_flush(&m->unicast_scope->cache);
H A Dresolved-dns-transaction.c28 #include "resolved-dns-cache.h"
575 /* For mDNS we cache whenever we get the packet, rather than
580 /* We never cache if this packet is from the local host, under
582 * cache this anyway, and probably knows better when to flush
583 * the cache then we could. */
587 dns_cache_put(&t->scope->cache,
1264 /* Check the cache, but only if this transaction is not used
1268 /* Before trying the cache, let's make sure we figured out a
1270 * might flush the cache. */
1274 dns_cache_prune(&t->scope->cache);
[all...]
/systemd/tmpfiles.d/
H A Dvar.conf18 d /var/cache 0755 - - -
/systemd/src/journal/
H A Dmmap-cache.c30 #include "mmap-cache.h"
39 MMapCache *cache; member in struct:Window
59 MMapCache *cache; member in struct:Context
67 MMapCache *cache; member in struct:FileDescriptor
126 if (w->cache->last_unused == w)
127 w->cache->last_unused = w->unused_prev;
129 LIST_REMOVE(unused, w->cache->unused, w);
157 w->cache->n_windows--;
195 w->cache = m;
227 LIST_PREPEND(unused, c->cache
[all...]
/systemd/src/libsystemd/sd-netlink/
H A Dtest-netlink.c127 struct ifa_cacheinfo cache; local
138 assert_se(sd_netlink_message_read_cache_info(r, IFA_CACHEINFO, &cache) == 0);

Completed in 34 milliseconds