Home
last modified time | relevance | path

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

/external/dnsmasq/src/
Dcache.c67 static void cache_free(struct crec *crecp);
68 static void cache_unlink(struct crec *crecp);
69 static void cache_link(struct crec *crecp);
71 static void cache_hash(struct crec *crecp);
75 struct crec *crecp; in cache_init() local
85 crecp = safe_malloc(daemon->cachesize*sizeof(struct crec)); in cache_init()
87 for (i=0; i < daemon->cachesize; i++, crecp++) in cache_init()
89 cache_link(crecp); in cache_init()
90 crecp->flags = 0; in cache_init()
91 crecp->uid = uid++; in cache_init()
[all …]
Drfc1035.c943 struct crec *crecp; in check_for_local_domain() local
949 if ((crecp = cache_find_by_name(NULL, name, now, F_IPV4 | F_IPV6)) && in check_for_local_domain()
950 (crecp->flags & (F_HOSTS | F_DHCP))) in check_for_local_domain()
1115 static unsigned long crec_ttl(struct crec *crecp, time_t now) in crec_ttl() argument
1120 if (crecp->flags & (F_IMMORTAL | F_DHCP)) in crec_ttl()
1123 return crecp->ttd - now; in crec_ttl()
1140 struct crec *crecp; in answer_request() local
1270 else if ((crecp = cache_find_by_addr(NULL, &addr, now, is_arpa))) in answer_request()
1274 if (qtype == T_ANY && !(crecp->flags & (F_HOSTS | F_DHCP))) in answer_request()
1277 if (crecp->flags & F_NEG) in answer_request()
[all …]
Ddnsmasq.h696 struct crec *cache_find_by_addr(struct crec *crecp,
699 struct crec *cache_find_by_name(struct crec *crecp,
709 char *cache_get_name(struct crec *crecp);