Lines Matching refs:daemon

78   if (daemon->options & OPT_LOG)  in cache_init()
81 bignames_left = daemon->cachesize/10; in cache_init()
83 if (daemon->cachesize > 0) in cache_init()
85 crecp = safe_malloc(daemon->cachesize*sizeof(struct crec)); in cache_init()
87 for (i=0; i < daemon->cachesize; i++, crecp++) in cache_init()
96 rehash(daemon->cachesize); in cache_init()
694 for (a = daemon->cnames; a; a = a->next) in add_hosts_entry()
756 char *token = daemon->namebuff, *domain_suffix = NULL; in read_hostsfile()
786 domain_suffix = daemon->domain_suffix; in read_hostsfile()
835 if ((daemon->options & OPT_EXPAND) && domain_suffix && !fqdn && in read_hostsfile()
871 int i, total_size = daemon->cachesize; in cache_reload()
899 if ((daemon->options & OPT_NO_HOSTS) && !daemon->addn_hosts) in cache_reload()
901 if (daemon->cachesize > 0) in cache_reload()
906 if (!(daemon->options & OPT_NO_HOSTS)) in cache_reload()
909 for (i = 0, ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
920 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
956 for (ah1 = daemon->addn_hosts; ah1; ah1 = ah1->next) in cache_reload()
986 ah1->next = daemon->addn_hosts; in cache_reload()
987 daemon->addn_hosts = ah1; in cache_reload()
1000 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
1009 for (c = daemon->cond_domain; c; c = c->next) in get_domain()
1014 return daemon->domain_suffix; in get_domain()
1050 strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4)); in cache_add_dhcp_entry()
1055 record_source(crec->uid), daemon->namebuff); in cache_add_dhcp_entry()
1099 for (a = daemon->cnames; a; a = a->next) in cache_add_dhcp_entry()
1131 daemon->cachesize, cache_live_freed, cache_inserted); in dump_cache()
1133 daemon->queries_forwarded, daemon->local_answer); in dump_cache()
1139 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache()
1142 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache()
1158 if ((daemon->options & (OPT_DEBUG | OPT_LOG))) in dump_cache()
1167 char *a, *p = daemon->namebuff; in dump_cache()
1208 my_syslog(LOG_DEBUG, daemon->namebuff); in dump_cache()
1220 for (ah = daemon->addn_hosts; ah; ah = ah->next) in record_source()
1242 if (!(daemon->options & OPT_LOG)) in log_query()