Lines Matching full:cfg
101 * @param cfg: config
107 print_option(struct config_file* cfg, const char* opt, int final) in print_option() argument
110 char *p = fname_after_chroot(cfg->pidfile, cfg, 1); in print_option()
117 struct config_strlist* s = cfg->auto_trust_anchor_file_list; in print_option()
119 char *p = fname_after_chroot(s->str, cfg, 1); in print_option()
126 if(!config_get_option(cfg, opt, config_print_func, stdout)) in print_option()
132 check_mod(struct config_file* cfg, struct module_func_block* fb) in check_mod() argument
136 env.cfg = cfg; in check_mod()
167 donotquerylocalhostcheck(struct config_file* cfg) in donotquerylocalhostcheck() argument
169 if(cfg->donotquery_localhost) { in donotquerylocalhostcheck()
172 for(p=cfg->forwards; p; p=p->next) { in donotquerylocalhostcheck()
180 for(p=cfg->stubs; p; p=p->next) { in donotquerylocalhostcheck()
193 localzonechecks(struct config_file* cfg) in localzonechecks() argument
198 if(!local_zones_apply_cfg(zs, cfg)) in localzonechecks()
205 acl_view_tag_checks(struct config_file* cfg, struct views* views) in acl_view_tag_checks() argument
215 for(acl=cfg->acl_view; acl; acl = acl->next) { in acl_view_tag_checks()
232 for(sb=cfg->acl_tags; sb; sb = sb->next) { in acl_view_tag_checks()
241 for(s3=cfg->acl_tag_actions; s3; s3 = s3->next) { in acl_view_tag_checks()
249 if(find_tag_id(cfg, s3->str2) == -1) { in acl_view_tag_checks()
262 for(s3=cfg->acl_tag_datas; s3; s3 = s3->next) { in acl_view_tag_checks()
272 if(find_tag_id(cfg, s3->str2) == -1) { in acl_view_tag_checks()
293 view_and_respipchecks(struct config_file* cfg) in view_and_respipchecks() argument
302 if(!views_apply_cfg(views, cfg)) in view_and_respipchecks()
304 if(!respip_global_apply_cfg(respip, cfg)) in view_and_respipchecks()
306 if(!respip_views_apply_cfg(views, cfg, &ignored)) in view_and_respipchecks()
308 acl_view_tag_checks(cfg, views); in view_and_respipchecks()
337 interfacechecks(struct config_file* cfg) in interfacechecks() argument
346 snprintf(portbuf, sizeof(portbuf), "%d", cfg->port); in interfacechecks()
348 if(cfg->num_ifs != 0) { in interfacechecks()
349 resif = (char***)calloc(cfg->num_ifs, sizeof(char**)); in interfacechecks()
351 num_resif = (int*)calloc(cfg->num_ifs, sizeof(int)); in interfacechecks()
354 for(i=0; i<cfg->num_ifs; i++) { in interfacechecks()
357 if(strcmp(cfg->ifs[i], cfg->ifs[i2]) == 0) { in interfacechecks()
360 cfg->ifs[i]); in interfacechecks()
363 if(!resolve_interface_names(&cfg->ifs[i], 1, NULL, &resif[i], in interfacechecks()
366 cfg->ifs[i]); in interfacechecks()
369 if(if_is_pp2(resif[i][0], portbuf, cfg->proxy_protocol_port)) { in interfacechecks()
371 cfg->dnscrypt_port)) { in interfacechecks()
375 cfg->https_port)) { in interfacechecks()
382 if(!extstrtoaddr(resif[i][j], &a, &alen, cfg->port)) { in interfacechecks()
383 if(strcmp(cfg->ifs[i], resif[i][j]) != 0) in interfacechecks()
385 resif[i][j], cfg->ifs[i]); in interfacechecks()
388 cfg->ifs[i]); in interfacechecks()
395 if(strcmp(cfg->ifs[i], resif[i][j]) != 0) in interfacechecks()
396 snprintf(info1, sizeof(info1), "address %s from interface: %s", resif[i][j], cfg->ifs[i]); in interfacechecks()
397 else snprintf(info1, sizeof(info1), "interface: %s", cfg->ifs[i]); in interfacechecks()
398 if(strcmp(cfg->ifs[i2], resif[i2][j2]) != 0) in interfacechecks()
399 snprintf(info2, sizeof(info2), "address %s from interface: %s", resif[i2][j2], cfg->ifs[i2]); in interfacechecks()
400 else snprintf(info2, sizeof(info2), "interface: %s", cfg->ifs[i2]); in interfacechecks()
408 for(i=0; i<cfg->num_ifs; i++) { in interfacechecks()
414 for(i=0; i<cfg->num_out_ifs; i++) { in interfacechecks()
415 if(!ipstrtoaddr(cfg->out_ifs[i], UNBOUND_DNS_PORT, &a, &alen) && in interfacechecks()
416 !netblockstrtoaddr(cfg->out_ifs[i], UNBOUND_DNS_PORT, &a, &alen, &d)) { in interfacechecks()
418 "specified as '%s'", cfg->out_ifs[i]); in interfacechecks()
420 for(j=0; j<cfg->num_out_ifs; j++) { in interfacechecks()
421 if(i!=j && strcmp(cfg->out_ifs[i], cfg->out_ifs[j])==0) in interfacechecks()
424 cfg->out_ifs[i]); in interfacechecks()
453 aclchecks(struct config_file* cfg) in aclchecks() argument
459 for(acl=cfg->acls; acl; acl = acl->next) { in aclchecks()
470 tcpconnlimitchecks(struct config_file* cfg) in tcpconnlimitchecks() argument
476 for(tcl=cfg->tcp_connection_limits; tcl; tcl = tcl->next) { in tcpconnlimitchecks()
541 const char* chrootdir, struct config_file* cfg) in check_chroot_string() argument
545 *ss = fname_after_chroot(str, cfg, 1); in check_chroot_string()
563 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist() argument
567 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist()
574 const char* chrootdir, struct config_file* cfg) in check_chroot_filelist_wild() argument
584 p->str = fname_after_chroot(p->str, cfg, 1); in check_chroot_filelist_wild()
588 check_chroot_string(desc, &p->str, chrootdir, cfg); in check_chroot_filelist_wild()
595 ecs_conf_checks(struct config_file* cfg) in ecs_conf_checks() argument
600 if(!ecs_whitelist_apply_cfg(whitelist, cfg)) in ecs_conf_checks()
646 morechecks(struct config_file* cfg) in morechecks() argument
648 warn_hosts("stub-host", cfg->stubs); in morechecks()
649 warn_hosts("forward-host", cfg->forwards); in morechecks()
650 interfacechecks(cfg); in morechecks()
651 ifautomaticportschecks(cfg->if_automatic_ports); in morechecks()
652 aclchecks(cfg); in morechecks()
653 tcpconnlimitchecks(cfg); in morechecks()
655 if(cfg->verbosity < 0) in morechecks()
657 if(cfg->num_threads <= 0 || cfg->num_threads > 10000) in morechecks()
659 if(!cfg->do_ip4 && !cfg->do_ip6) in morechecks()
661 if(!cfg->do_ip4 && cfg->prefer_ip4) in morechecks()
663 if(!cfg->do_ip6 && cfg->prefer_ip6) in morechecks()
665 if(!cfg->do_udp && !cfg->do_tcp) in morechecks()
667 if(cfg->edns_buffer_size > cfg->msg_buffer_size) in morechecks()
671 w_config_adjust_directory(cfg); in morechecks()
673 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
674 cfg->chrootdir[strlen(cfg->chrootdir)-1] == '/') in morechecks()
676 cfg->chrootdir); in morechecks()
677 if(cfg->chrootdir && cfg->chrootdir[0] && in morechecks()
678 !is_dir(cfg->chrootdir)) { in morechecks()
681 if(cfg->directory && cfg->directory[0]) { in morechecks()
682 char* ad = fname_after_chroot(cfg->directory, cfg, 0); in morechecks()
687 if( (cfg->chrootdir && cfg->chrootdir[0]) || in morechecks()
688 (cfg->directory && cfg->directory[0])) { in morechecks()
689 if(cfg->pidfile && cfg->pidfile[0]) { in morechecks()
690 char* ad = (cfg->pidfile[0]=='/')?strdup(cfg->pidfile): in morechecks()
691 fname_after_chroot(cfg->pidfile, cfg, 1); in morechecks()
697 if(cfg->logfile && cfg->logfile[0]) { in morechecks()
698 char* ad = fname_after_chroot(cfg->logfile, cfg, 1); in morechecks()
707 cfg->root_hints, cfg->chrootdir, cfg); in morechecks()
709 cfg->trust_anchor_file_list, cfg->chrootdir, cfg); in morechecks()
711 cfg->auto_trust_anchor_file_list, cfg->chrootdir, cfg); in morechecks()
713 cfg->trusted_keys_file_list, cfg->chrootdir, cfg); in morechecks()
714 if(cfg->disable_edns_do && strstr(cfg->module_conf, "validator") in morechecks()
715 && (cfg->trust_anchor_file_list in morechecks()
716 || cfg->trust_anchor_list in morechecks()
717 || cfg->auto_trust_anchor_file_list in morechecks()
718 || cfg->trusted_keys_file_list)) { in morechecks()
720 if(cfg->auto_trust_anchor_file_list) in morechecks()
721 key = cfg->auto_trust_anchor_file_list->str; in morechecks()
722 if(!key && cfg->trust_anchor_file_list) in morechecks()
723 key = cfg->trust_anchor_file_list->str; in morechecks()
724 if(!key && cfg->trust_anchor_list) in morechecks()
725 key = cfg->trust_anchor_list->str; in morechecks()
726 if(!key && cfg->trusted_keys_file_list) in morechecks()
727 key = cfg->trusted_keys_file_list->str; in morechecks()
732 if(cfg->ipsecmod_enabled && strstr(cfg->module_conf, "ipsecmod")) { in morechecks()
734 check_chroot_string("ipsecmod-hook", &cfg->ipsecmod_hook, in morechecks()
735 cfg->chrootdir, cfg); in morechecks()
739 free(cfg->chrootdir); in morechecks()
740 cfg->chrootdir = NULL; in morechecks()
743 check_modules_exist(cfg->module_conf); in morechecks()
746 if(strcmp(cfg->module_conf, "iterator") != 0 in morechecks()
747 && strcmp(cfg->module_conf, "validator iterator") != 0 in morechecks()
748 && strcmp(cfg->module_conf, "dns64 validator iterator") != 0 in morechecks()
749 && strcmp(cfg->module_conf, "dns64 iterator") != 0 in morechecks()
750 && strcmp(cfg->module_conf, "respip iterator") != 0 in morechecks()
751 && strcmp(cfg->module_conf, "respip validator iterator") != 0 in morechecks()
752 && strcmp(cfg->module_conf, "respip dns64 validator iterator") != 0 in morechecks()
753 && strcmp(cfg->module_conf, "respip dns64 iterator") != 0 in morechecks()
755 && strcmp(cfg->module_conf, "python iterator") != 0 in morechecks()
756 && strcmp(cfg->module_conf, "python respip iterator") != 0 in morechecks()
757 && strcmp(cfg->module_conf, "python validator iterator") != 0 in morechecks()
758 && strcmp(cfg->module_conf, "python respip validator iterator") != 0 in morechecks()
759 && strcmp(cfg->module_conf, "validator python iterator") != 0 in morechecks()
760 && strcmp(cfg->module_conf, "dns64 python iterator") != 0 in morechecks()
761 && strcmp(cfg->module_conf, "dns64 python validator iterator") != 0 in morechecks()
762 && strcmp(cfg->module_conf, "dns64 validator python iterator") != 0 in morechecks()
763 && strcmp(cfg->module_conf, "python dns64 iterator") != 0 in morechecks()
764 && strcmp(cfg->module_conf, "python dns64 validator iterator") != 0 in morechecks()
767 && strcmp(cfg->module_conf, "dynlib iterator") != 0 in morechecks()
768 && strcmp(cfg->module_conf, "dynlib dynlib iterator") != 0 in morechecks()
769 && strcmp(cfg->module_conf, "dynlib dynlib dynlib iterator") != 0 in morechecks()
770 && strcmp(cfg->module_conf, "python dynlib iterator") != 0 in morechecks()
771 && strcmp(cfg->module_conf, "python dynlib dynlib iterator") != 0 in morechecks()
772 && strcmp(cfg->module_conf, "python dynlib dynlib dynlib iterator") != 0 in morechecks()
773 && strcmp(cfg->module_conf, "dynlib respip iterator") != 0 in morechecks()
774 && strcmp(cfg->module_conf, "dynlib validator iterator") != 0 in morechecks()
775 && strcmp(cfg->module_conf, "dynlib dynlib validator iterator") != 0 in morechecks()
776 && strcmp(cfg->module_conf, "dynlib dynlib dynlib validator iterator") != 0 in morechecks()
777 && strcmp(cfg->module_conf, "python dynlib validator iterator") != 0 in morechecks()
778 && strcmp(cfg->module_conf, "python dynlib dynlib validator iterator") != 0 in morechecks()
779 && strcmp(cfg->module_conf, "python dynlib dynlib dynlib validator iterator") != 0 in morechecks()
780 && strcmp(cfg->module_conf, "dynlib respip validator iterator") != 0 in morechecks()
781 && strcmp(cfg->module_conf, "validator dynlib iterator") != 0 in morechecks()
782 && strcmp(cfg->module_conf, "dns64 dynlib iterator") != 0 in morechecks()
783 && strcmp(cfg->module_conf, "dns64 dynlib validator iterator") != 0 in morechecks()
784 && strcmp(cfg->module_conf, "dns64 validator dynlib iterator") != 0 in morechecks()
785 && strcmp(cfg->module_conf, "dynlib dns64 iterator") != 0 in morechecks()
786 && strcmp(cfg->module_conf, "dynlib dns64 validator iterator") != 0 in morechecks()
787 && strcmp(cfg->module_conf, "dynlib dns64 cachedb iterator") != 0 in morechecks()
788 && strcmp(cfg->module_conf, "dynlib dns64 validator cachedb iterator") != 0 in morechecks()
789 && strcmp(cfg->module_conf, "dns64 dynlib cachedb iterator") != 0 in morechecks()
790 && strcmp(cfg->module_conf, "dns64 dynlib validator cachedb iterator") != 0 in morechecks()
791 && strcmp(cfg->module_conf, "dynlib cachedb iterator") != 0 in morechecks()
792 && strcmp(cfg->module_conf, "dynlib respip cachedb iterator") != 0 in morechecks()
793 && strcmp(cfg->module_conf, "dynlib validator cachedb iterator") != 0 in morechecks()
794 && strcmp(cfg->module_conf, "dynlib respip validator cachedb iterator") != 0 in morechecks()
795 && strcmp(cfg->module_conf, "cachedb dynlib iterator") != 0 in morechecks()
796 && strcmp(cfg->module_conf, "respip cachedb dynlib iterator") != 0 in morechecks()
797 && strcmp(cfg->module_conf, "validator cachedb dynlib iterator") != 0 in morechecks()
798 && strcmp(cfg->module_conf, "respip validator cachedb dynlib iterator") != 0 in morechecks()
799 && strcmp(cfg->module_conf, "validator dynlib cachedb iterator") != 0 in morechecks()
800 && strcmp(cfg->module_conf, "respip validator dynlib cachedb iterator") != 0 in morechecks()
801 && strcmp(cfg->module_conf, "dynlib subnetcache iterator") != 0 in morechecks()
802 && strcmp(cfg->module_conf, "dynlib respip subnetcache iterator") != 0 in morechecks()
803 && strcmp(cfg->module_conf, "subnetcache dynlib iterator") != 0 in morechecks()
804 && strcmp(cfg->module_conf, "respip subnetcache dynlib iterator") != 0 in morechecks()
805 && strcmp(cfg->module_conf, "dynlib subnetcache validator iterator") != 0 in morechecks()
806 && strcmp(cfg->module_conf, "dynlib respip subnetcache validator iterator") != 0 in morechecks()
807 && strcmp(cfg->module_conf, "subnetcache dynlib validator iterator") != 0 in morechecks()
808 && strcmp(cfg->module_conf, "respip subnetcache dynlib validator iterator") != 0 in morechecks()
809 && strcmp(cfg->module_conf, "subnetcache validator dynlib iterator") != 0 in morechecks()
810 && strcmp(cfg->module_conf, "respip subnetcache validator dynlib iterator") != 0 in morechecks()
811 && strcmp(cfg->module_conf, "dynlib ipsecmod iterator") != 0 in morechecks()
812 && strcmp(cfg->module_conf, "dynlib ipsecmod respip iterator") != 0 in morechecks()
813 && strcmp(cfg->module_conf, "ipsecmod dynlib iterator") != 0 in morechecks()
814 && strcmp(cfg->module_conf, "ipsecmod dynlib respip iterator") != 0 in morechecks()
815 && strcmp(cfg->module_conf, "ipsecmod validator iterator") != 0 in morechecks()
816 && strcmp(cfg->module_conf, "ipsecmod respip validator iterator") != 0 in morechecks()
817 && strcmp(cfg->module_conf, "dynlib ipsecmod validator iterator") != 0 in morechecks()
818 && strcmp(cfg->module_conf, "dynlib ipsecmod respip validator iterator") != 0 in morechecks()
819 && strcmp(cfg->module_conf, "ipsecmod dynlib validator iterator") != 0 in morechecks()
820 && strcmp(cfg->module_conf, "ipsecmod dynlib respip validator iterator") != 0 in morechecks()
821 && strcmp(cfg->module_conf, "ipsecmod validator dynlib iterator") != 0 in morechecks()
822 && strcmp(cfg->module_conf, "ipsecmod respip validator dynlib iterator") != 0 in morechecks()
825 && strcmp(cfg->module_conf, "validator cachedb iterator") != 0 in morechecks()
826 && strcmp(cfg->module_conf, "respip validator cachedb iterator") != 0 in morechecks()
827 && strcmp(cfg->module_conf, "cachedb iterator") != 0 in morechecks()
828 && strcmp(cfg->module_conf, "respip cachedb iterator") != 0 in morechecks()
829 && strcmp(cfg->module_conf, "dns64 validator cachedb iterator") != 0 in morechecks()
830 && strcmp(cfg->module_conf, "dns64 cachedb iterator") != 0 in morechecks()
833 && strcmp(cfg->module_conf, "python dns64 cachedb iterator") != 0 in morechecks()
834 && strcmp(cfg->module_conf, "python dns64 validator cachedb iterator") != 0 in morechecks()
835 && strcmp(cfg->module_conf, "dns64 python cachedb iterator") != 0 in morechecks()
836 && strcmp(cfg->module_conf, "dns64 python validator cachedb iterator") != 0 in morechecks()
837 && strcmp(cfg->module_conf, "python cachedb iterator") != 0 in morechecks()
838 && strcmp(cfg->module_conf, "python respip cachedb iterator") != 0 in morechecks()
839 && strcmp(cfg->module_conf, "python validator cachedb iterator") != 0 in morechecks()
840 && strcmp(cfg->module_conf, "python respip validator cachedb iterator") != 0 in morechecks()
841 && strcmp(cfg->module_conf, "cachedb python iterator") != 0 in morechecks()
842 && strcmp(cfg->module_conf, "respip cachedb python iterator") != 0 in morechecks()
843 && strcmp(cfg->module_conf, "validator cachedb python iterator") != 0 in morechecks()
844 && strcmp(cfg->module_conf, "respip validator cachedb python iterator") != 0 in morechecks()
845 && strcmp(cfg->module_conf, "validator python cachedb iterator") != 0 in morechecks()
846 && strcmp(cfg->module_conf, "respip validator python cachedb iterator") != 0 in morechecks()
849 && strcmp(cfg->module_conf, "respip subnetcache validator cachedb iterator") != 0 in morechecks()
850 && strcmp(cfg->module_conf, "subnetcache validator cachedb iterator") != 0 in morechecks()
853 && strcmp(cfg->module_conf, "subnetcache iterator") != 0 in morechecks()
854 && strcmp(cfg->module_conf, "respip subnetcache iterator") != 0 in morechecks()
855 && strcmp(cfg->module_conf, "subnetcache validator iterator") != 0 in morechecks()
856 && strcmp(cfg->module_conf, "respip subnetcache validator iterator") != 0 in morechecks()
857 && strcmp(cfg->module_conf, "dns64 subnetcache iterator") != 0 in morechecks()
858 && strcmp(cfg->module_conf, "dns64 subnetcache validator iterator") != 0 in morechecks()
859 && strcmp(cfg->module_conf, "dns64 subnetcache respip iterator") != 0 in morechecks()
860 && strcmp(cfg->module_conf, "dns64 subnetcache respip validator iterator") != 0 in morechecks()
863 && strcmp(cfg->module_conf, "python subnetcache iterator") != 0 in morechecks()
864 && strcmp(cfg->module_conf, "python respip subnetcache iterator") != 0 in morechecks()
865 && strcmp(cfg->module_conf, "subnetcache python iterator") != 0 in morechecks()
866 && strcmp(cfg->module_conf, "respip subnetcache python iterator") != 0 in morechecks()
867 && strcmp(cfg->module_conf, "python subnetcache validator iterator") != 0 in morechecks()
868 && strcmp(cfg->module_conf, "python respip subnetcache validator iterator") != 0 in morechecks()
869 && strcmp(cfg->module_conf, "subnetcache python validator iterator") != 0 in morechecks()
870 && strcmp(cfg->module_conf, "respip subnetcache python validator iterator") != 0 in morechecks()
871 && strcmp(cfg->module_conf, "subnetcache validator python iterator") != 0 in morechecks()
872 && strcmp(cfg->module_conf, "respip subnetcache validator python iterator") != 0 in morechecks()
875 && strcmp(cfg->module_conf, "ipsecmod iterator") != 0 in morechecks()
876 && strcmp(cfg->module_conf, "ipsecmod respip iterator") != 0 in morechecks()
877 && strcmp(cfg->module_conf, "ipsecmod validator iterator") != 0 in morechecks()
878 && strcmp(cfg->module_conf, "ipsecmod respip validator iterator") != 0 in morechecks()
881 && strcmp(cfg->module_conf, "python ipsecmod iterator") != 0 in morechecks()
882 && strcmp(cfg->module_conf, "python ipsecmod respip iterator") != 0 in morechecks()
883 && strcmp(cfg->module_conf, "ipsecmod python iterator") != 0 in morechecks()
884 && strcmp(cfg->module_conf, "ipsecmod python respip iterator") != 0 in morechecks()
885 && strcmp(cfg->module_conf, "ipsecmod validator iterator") != 0 in morechecks()
886 && strcmp(cfg->module_conf, "ipsecmod respip validator iterator") != 0 in morechecks()
887 && strcmp(cfg->module_conf, "python ipsecmod validator iterator") != 0 in morechecks()
888 && strcmp(cfg->module_conf, "python ipsecmod respip validator iterator") != 0 in morechecks()
889 && strcmp(cfg->module_conf, "ipsecmod python validator iterator") != 0 in morechecks()
890 && strcmp(cfg->module_conf, "ipsecmod python respip validator iterator") != 0 in morechecks()
891 && strcmp(cfg->module_conf, "ipsecmod validator python iterator") != 0 in morechecks()
892 && strcmp(cfg->module_conf, "ipsecmod respip validator python iterator") != 0 in morechecks()
895 && strcmp(cfg->module_conf, "validator ipset iterator") != 0 in morechecks()
896 && strcmp(cfg->module_conf, "validator ipset respip iterator") != 0 in morechecks()
897 && strcmp(cfg->module_conf, "ipset iterator") != 0 in morechecks()
898 && strcmp(cfg->module_conf, "ipset respip iterator") != 0 in morechecks()
902 cfg->module_conf); in morechecks()
906 if(cfg->username && cfg->username[0]) { in morechecks()
907 if(getpwnam(cfg->username) == NULL) in morechecks()
908 fatal_exit("user '%s' does not exist.", cfg->username); in morechecks()
914 if(cfg->remote_control_enable && options_remote_is_address(cfg) in morechecks()
915 && cfg->control_use_cert) { in morechecks()
916 check_chroot_string("server-key-file", &cfg->server_key_file, in morechecks()
917 cfg->chrootdir, cfg); in morechecks()
918 check_chroot_string("server-cert-file", &cfg->server_cert_file, in morechecks()
919 cfg->chrootdir, cfg); in morechecks()
920 if(!is_file(cfg->control_key_file)) in morechecks()
922 cfg->control_key_file); in morechecks()
923 if(!is_file(cfg->control_cert_file)) in morechecks()
925 cfg->control_cert_file); in morechecks()
928 donotquerylocalhostcheck(cfg); in morechecks()
929 localzonechecks(cfg); in morechecks()
930 view_and_respipchecks(cfg); in morechecks()
932 ecs_conf_checks(cfg); in morechecks()
938 check_fwd(struct config_file* cfg) in check_fwd() argument
941 if(!fwd || !forwards_apply_cfg(fwd, cfg)) { in check_fwd()
949 check_hints(struct config_file* cfg) in check_hints() argument
952 if(!hints || !hints_apply_cfg(hints, cfg)) { in check_hints()
960 check_auth(struct config_file* cfg) in check_auth() argument
964 if(!az || !auth_zones_apply_cfg(az, cfg, 0, &is_rpz, NULL, NULL)) { in check_auth()
975 struct config_file* cfg = config_create(); in checkconf() local
976 if(!cfg) in checkconf()
983 if(!config_read(cfg, cfgfile, NULL)) { in checkconf()
985 config_delete(cfg); in checkconf()
991 print_option(cfg, opt, final); in checkconf()
992 config_delete(cfg); in checkconf()
995 morechecks(cfg); in checkconf()
996 check_mod(cfg, iter_get_funcblock()); in checkconf()
997 check_mod(cfg, val_get_funcblock()); in checkconf()
999 if(strstr(cfg->module_conf, "python")) in checkconf()
1000 check_mod(cfg, pythonmod_get_funcblock()); in checkconf()
1002 check_fwd(cfg); in checkconf()
1003 check_hints(cfg); in checkconf()
1004 check_auth(cfg); in checkconf()
1006 config_delete(cfg); in checkconf()