Home
last modified time | relevance | path

Searched refs:crecp (Results 1 – 3 of 3) sorted by relevance

/external/dnsmasq/src/
Dcache.c41 static void cache_free(struct crec* crecp);
42 static void cache_unlink(struct crec* crecp);
43 static void cache_link(struct crec* crecp);
45 static void cache_hash(struct crec* crecp);
48 struct crec* crecp; in cache_init() local
56 crecp = safe_malloc(daemon->cachesize * sizeof(struct crec)); in cache_init()
58 for (i = 0; i < daemon->cachesize; i++, crecp++) { in cache_init()
59 cache_link(crecp); in cache_init()
60 crecp->flags = 0; in cache_init()
61 crecp->uid = uid++; in cache_init()
[all …]
Drfc1035.c773 struct crec* crecp; in check_for_local_domain() local
779 if ((crecp = cache_find_by_name(NULL, name, now, F_IPV4 | F_IPV6)) && in check_for_local_domain()
780 (crecp->flags & (F_HOSTS | F_DHCP))) in check_for_local_domain()
927 static unsigned long crec_ttl(struct crec* crecp, time_t now) { in crec_ttl() argument
931 if (crecp->flags & (F_IMMORTAL | F_DHCP)) return daemon->local_ttl; in crec_ttl()
933 return crecp->ttd - now; in crec_ttl()
948 struct crec* crecp; in answer_request() local
1058 } else if ((crecp = cache_find_by_addr(NULL, &addr, now, is_arpa))) in answer_request()
1061 if (qtype == T_ANY && !(crecp->flags & (F_HOSTS | F_DHCP))) continue; in answer_request()
1063 if (crecp->flags & F_NEG) { in answer_request()
[all …]
Ddnsmasq.h653 struct crec* cache_find_by_addr(struct crec* crecp, struct all_addr* addr, time_t now,
655 struct crec* cache_find_by_name(struct crec* crecp, char* name, time_t now, unsigned short prot);
664 char* cache_get_name(struct crec* crecp);