• Home
  • Raw
  • Download

Lines Matching refs:daemon

51     if (daemon->options & OPT_LOG) addrbuff = safe_malloc(ADDRSTRLEN);  in cache_init()
53 bignames_left = daemon->cachesize / 10; in cache_init()
55 if (daemon->cachesize > 0) { in cache_init()
56 crecp = safe_malloc(daemon->cachesize * sizeof(struct crec)); in cache_init()
58 for (i = 0; i < daemon->cachesize; i++, crecp++) { in cache_init()
66 rehash(daemon->cachesize); in cache_init()
568 for (a = daemon->cnames; a; a = a->next) in add_hosts_entry()
617 char *token = daemon->namebuff, *domain_suffix = NULL; in read_hostsfile()
642 domain_suffix = daemon->domain_suffix; in read_hostsfile()
683 if ((daemon->options & OPT_EXPAND) && domain_suffix && !fqdn && in read_hostsfile()
715 int i, total_size = daemon->cachesize; in cache_reload()
737 if ((daemon->options & OPT_NO_HOSTS) && !daemon->addn_hosts) { in cache_reload()
738 if (daemon->cachesize > 0) my_syslog(LOG_INFO, _("cleared cache")); in cache_reload()
742 if (!(daemon->options & OPT_NO_HOSTS)) total_size = read_hostsfile(HOSTSFILE, 0, total_size); in cache_reload()
744 for (i = 0, ah = daemon->addn_hosts; ah; ah = ah->next) { in cache_reload()
753 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
784 for (ah1 = daemon->addn_hosts; ah1; ah1 = ah1->next) { in cache_reload()
809 ah1->next = daemon->addn_hosts; in cache_reload()
810 daemon->addn_hosts = ah1; in cache_reload()
823 for (ah = daemon->addn_hosts; ah; ah = ah->next) in cache_reload()
831 for (c = daemon->cond_domain; c; c = c->next) in get_domain()
836 return daemon->domain_suffix; in get_domain()
864 strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4)); in cache_add_dhcp_entry()
869 daemon->namebuff); in cache_add_dhcp_entry()
908 for (a = daemon->cnames; a; a = a->next) in cache_add_dhcp_entry()
936 daemon->cachesize, cache_live_freed, cache_inserted); in dump_cache()
938 daemon->queries_forwarded, daemon->local_answer); in dump_cache()
943 for (serv = daemon->servers; serv; serv = serv->next) serv->flags &= ~SERV_COUNTED; in dump_cache()
945 for (serv = daemon->servers; serv; serv = serv->next) in dump_cache()
961 if ((daemon->options & (OPT_DEBUG | OPT_LOG))) { in dump_cache()
970 char *a, *p = daemon->namebuff; in dump_cache()
1006 my_syslog(LOG_DEBUG, daemon->namebuff); in dump_cache()
1016 for (ah = daemon->addn_hosts; ah; ah = ah->next) in record_source()
1034 if (!(daemon->options & OPT_LOG)) return; in log_query()