• Home
  • Raw
  • Download

Lines Matching refs:daemon

591     r->next = daemon->txt;  in add_txt()
592 daemon->txt = r; in add_txt()
889 new->next = daemon->dhcp_match; in parse_dhcp_opt()
890 daemon->dhcp_match = new; in parse_dhcp_opt()
893 new->next = daemon->dhcp_opts; in parse_dhcp_opt()
894 daemon->dhcp_opts = new; in parse_dhcp_opt()
925 daemon->options |= rept; in one_opt()
1012 daemon->log_file = opt_string_alloc(arg); in one_opt()
1021 daemon->log_fac = facilitynames[i].c_val; in one_opt()
1029 daemon->runfile = opt_string_alloc(arg); in one_opt()
1033 if (daemon->dhcp_hosts_file) in one_opt()
1036 daemon->dhcp_hosts_file = opt_string_alloc(arg); in one_opt()
1040 if (daemon->dhcp_opts_file) in one_opt()
1043 daemon->dhcp_opts_file = opt_string_alloc(arg); in one_opt()
1049 struct resolvc* new, *list = daemon->resolv_files; in one_opt()
1067 daemon->resolv_files = list; in one_opt()
1087 new->next = daemon->mxnames; in one_opt()
1088 daemon->mxnames = new; in one_opt()
1097 if (!(daemon->mxtarget = canonicalise_opt(arg))) problem = _("bad MX target"); in one_opt()
1102 daemon->lease_file = opt_string_alloc(arg); in one_opt()
1111 daemon->lease_change_command = opt_string_alloc(arg); in one_opt()
1123 new->next = daemon->addn_hosts; in one_opt()
1124 daemon->addn_hosts = new; in one_opt()
1130 daemon->options |= OPT_RESOLV_DOMAIN; in one_opt()
1159 new->next = daemon->cond_domain; in one_opt()
1160 daemon->cond_domain = new; in one_opt()
1162 daemon->domain_suffix = d; in one_opt()
1168 daemon->username = opt_string_alloc(arg); in one_opt()
1172 daemon->groupname = opt_string_alloc(arg); in one_opt()
1173 daemon->group_set = 1; in one_opt()
1178 daemon->scriptuser = opt_string_alloc(arg); in one_opt()
1186 new->next = daemon->if_names; in one_opt()
1187 daemon->if_names = new; in one_opt()
1203 new->next = daemon->if_except; in one_opt()
1204 daemon->if_except = new; in one_opt()
1206 new->next = daemon->dhcp_except; in one_opt()
1207 daemon->dhcp_except = new; in one_opt()
1219 baddr->next = daemon->bogus_addr; in one_opt()
1220 daemon->bogus_addr = baddr; in one_opt()
1232 new->next = daemon->if_addrs; in one_opt()
1239 daemon->if_addrs = new; in one_opt()
1349 serv->next = daemon->servers; in one_opt()
1350 daemon->servers = newlist; in one_opt()
1368 daemon->cachesize = size; in one_opt()
1374 if (!atoi_check16(arg, &daemon->port)) option = '?'; in one_opt()
1378 if (!atoi_check16(arg, &daemon->min_port)) option = '?'; in one_opt()
1382 if (!atoi_check(arg, &daemon->ftabsize)) option = '?'; in one_opt()
1386 daemon->max_logs = LOG_MAX; /* default */ in one_opt()
1387 if (arg && !atoi_check(arg, &daemon->max_logs)) in one_opt()
1389 else if (daemon->max_logs > 100) in one_opt()
1390 daemon->max_logs = 100; in one_opt()
1397 daemon->edns_pktsz = (unsigned short) i; in one_opt()
1402 if (!atoi_check16(arg, &daemon->query_port)) option = '?'; in one_opt()
1405 if (daemon->query_port == 0) daemon->osport = 1; in one_opt()
1415 daemon->neg_ttl = (unsigned long) ttl; in one_opt()
1417 daemon->local_ttl = (unsigned long) ttl; in one_opt()
1423 if (!atoi_check(arg, &daemon->dhcp_max)) option = '?'; in one_opt()
1437 new->next = daemon->bridges; in one_opt()
1438 daemon->bridges = new; in one_opt()
1461 new->next = daemon->dhcp; in one_opt()
1528 daemon->dhcp = new; in one_opt()
1580 new->next = daemon->dhcp_conf; in one_opt()
1683 daemon->dhcp_conf = new; in one_opt()
1734 new->next = daemon->boot_config; in one_opt()
1735 daemon->boot_config = new; in one_opt()
1776 new->next = daemon->dhcp_opts; in one_opt()
1777 daemon->dhcp_opts = new; in one_opt()
1778 daemon->enable_pxe = 1; in one_opt()
1831 if (!daemon->pxe_services) in one_opt()
1832 daemon->pxe_services = new; in one_opt()
1835 for (s = daemon->pxe_services; s->next; s = s->next) in one_opt()
1840 daemon->enable_pxe = 1; in one_opt()
1863 new->next = daemon->dhcp_macs; in one_opt()
1864 daemon->dhcp_macs = new; in one_opt()
1919 new->next = daemon->dhcp_vendors; in one_opt()
1920 daemon->dhcp_vendors = new; in one_opt()
1927 daemon->dhcp_server_port = DHCP_SERVER_ALTPORT; in one_opt()
1928 daemon->dhcp_client_port = DHCP_CLIENT_ALTPORT; in one_opt()
1931 if (!atoi_check16(arg, &daemon->dhcp_server_port) || in one_opt()
1932 (comma && !atoi_check16(comma, &daemon->dhcp_client_port))) in one_opt()
1934 if (!comma) daemon->dhcp_client_port = daemon->dhcp_server_port + 1; in one_opt()
1946 new->next = daemon->dhcp_ignore; in one_opt()
1947 daemon->dhcp_ignore = new; in one_opt()
1949 new->next = daemon->force_broadcast; in one_opt()
1950 daemon->force_broadcast = new; in one_opt()
1952 new->next = daemon->bootp_dynamic; in one_opt()
1953 daemon->bootp_dynamic = new; in one_opt()
1955 new->next = daemon->dhcp_ignore_names; in one_opt()
1956 daemon->dhcp_ignore_names = new; in one_opt()
1981 new->next = daemon->doctors; in one_opt()
1982 daemon->doctors = new; in one_opt()
2021 for (up = &daemon->int_names; *up; up = &((*up)->next)) in one_opt()
2042 for (new = daemon->cnames; new; new = new->next) in one_opt()
2045 new->next = daemon->cnames; in one_opt()
2046 daemon->cnames = new; in one_opt()
2065 new->next = daemon->ptr; in one_opt()
2066 daemon->ptr = new; in one_opt()
2090 new->next = daemon->naptr; in one_opt()
2091 daemon->naptr = new; in one_opt()
2128 new->next = daemon->txt; in one_opt()
2129 daemon->txt = new; in one_opt()
2187 new->next = daemon->mxnames; in one_opt()
2188 daemon->mxnames = new; in one_opt()
2204 daemon->listen_mark = mark; in one_opt()
2226 char *p, *arg, *start, *buff = daemon->namebuff; in one_file()
2375 if (daemon->dhcp_hosts_file) { in reread_dhcp()
2379 for (up = &daemon->dhcp_conf, configs = daemon->dhcp_conf; configs; configs = cp) { in reread_dhcp()
2399 one_file(daemon->dhcp_hosts_file, 1, LOPT_BANK); in reread_dhcp()
2400 my_syslog(MS_DHCP | LOG_INFO, _("read %s"), daemon->dhcp_hosts_file); in reread_dhcp()
2403 if (daemon->dhcp_opts_file) { in reread_dhcp()
2407 for (up = &daemon->dhcp_opts, opts = daemon->dhcp_opts; opts; opts = cp) { in reread_dhcp()
2424 one_file(daemon->dhcp_opts_file, 1, LOPT_OPTS); in reread_dhcp()
2425 my_syslog(MS_DHCP | LOG_INFO, _("read %s"), daemon->dhcp_opts_file); in reread_dhcp()
2437 daemon = opt_malloc(sizeof(struct daemon)); in read_opts()
2438 memset(daemon, 0, sizeof(struct daemon)); in read_opts()
2439 daemon->namebuff = buff; in read_opts()
2442 daemon->cachesize = CACHESIZ; in read_opts()
2443 daemon->ftabsize = FTABSIZ; in read_opts()
2444 daemon->port = NAMESERVER_PORT; in read_opts()
2445 daemon->dhcp_client_port = DHCP_CLIENT_PORT; in read_opts()
2446 daemon->dhcp_server_port = DHCP_SERVER_PORT; in read_opts()
2447 daemon->default_resolv.is_default = 1; in read_opts()
2448 daemon->default_resolv.name = RESOLVFILE; in read_opts()
2449 daemon->resolv_files = &daemon->default_resolv; in read_opts()
2450 daemon->username = CHUSER; in read_opts()
2451 daemon->runfile = RUNFILE; in read_opts()
2452 daemon->dhcp_max = MAXLEASES; in read_opts()
2453 daemon->edns_pktsz = EDNS_PKTSZ; in read_opts()
2454 daemon->log_fac = -1; in read_opts()
2509 if (daemon->servers) { in read_opts()
2511 for (tmp = daemon->servers; tmp; tmp = tmp->next) in read_opts()
2514 tmp->source_addr.in.sin_port = htons(daemon->query_port); in read_opts()
2517 tmp->source_addr.in6.sin6_port = htons(daemon->query_port); in read_opts()
2522 if (daemon->if_addrs) { in read_opts()
2524 for (tmp = daemon->if_addrs; tmp; tmp = tmp->next) in read_opts()
2525 if (tmp->addr.sa.sa_family == AF_INET) tmp->addr.in.sin_port = htons(daemon->port); in read_opts()
2528 tmp->addr.in6.sin6_port = htons(daemon->port); in read_opts()
2533 if ((daemon->options & OPT_LOCALMX) || daemon->mxnames || daemon->mxtarget) { in read_opts()
2538 for (mx = daemon->mxnames; mx; mx = mx->next) in read_opts()
2541 if ((daemon->mxtarget || (daemon->options & OPT_LOCALMX)) && !mx) { in read_opts()
2543 mx->next = daemon->mxnames; in read_opts()
2547 daemon->mxnames = mx; in read_opts()
2550 if (!daemon->mxtarget) daemon->mxtarget = opt_string_alloc(buff); in read_opts()
2552 for (mx = daemon->mxnames; mx; mx = mx->next) in read_opts()
2553 if (!mx->issrv && !mx->target) mx->target = daemon->mxtarget; in read_opts()
2556 if (!(daemon->options & OPT_NO_RESOLV) && daemon->resolv_files && daemon->resolv_files->next && in read_opts()
2557 (daemon->options & OPT_NO_POLL)) in read_opts()
2560 if (daemon->options & OPT_RESOLV_DOMAIN) { in read_opts()
2564 if ((daemon->options & OPT_NO_RESOLV) || !daemon->resolv_files || in read_opts()
2565 (daemon->resolv_files)->next) in read_opts()
2568 if (!(f = fopen((daemon->resolv_files)->name, "r"))) in read_opts()
2569 die(_("failed to read %s: %s"), (daemon->resolv_files)->name, EC_FILE); in read_opts()
2577 (daemon->domain_suffix = canonicalise_opt(token))) in read_opts()
2583 if (!daemon->domain_suffix) in read_opts()
2584 die(_("no search directive found in %s"), (daemon->resolv_files)->name, EC_MISC); in read_opts()
2587 if (daemon->domain_suffix) { in read_opts()
2591 for (srv = daemon->mxnames; srv; srv = srv->next) in read_opts()
2596 strcat(buff, daemon->domain_suffix); in read_opts()
2600 } else if (daemon->options & OPT_DHCP_FQDN) in read_opts()