Lines Matching refs:cfg

2128 	ns_cfgctx_t *cfg;
2131 cfg = (ns_cfgctx_t *) ev->view->new_zone_config;
2132 if (cfg == NULL) {
2199 cfg_parser_reset(cfg->add_parser);
2200 result = cfg_parse_buffer3(cfg->add_parser, confbuf, "catz", 0,
2228 result = configure_zone(cfg->config, zoneobj, cfg->vconfig,
2230 &ev->cbd->server->viewlist, cfg->actx,
2279 cfg_obj_destroy(cfg->add_parser, &zoneconf);
12005 do_addzone(ns_server_t *server, ns_cfgctx_t *cfg, dns_view_t *view,
12065 result = configure_zone(cfg->config, zoneobj, cfg->vconfig,
12067 cfg->actx, ISC_TRUE, ISC_FALSE, ISC_FALSE);
12096 if (cfg->nzf_config == NULL) {
12097 cfg_obj_attach(zoneconf, &cfg->nzf_config);
12101 CHECK(cfg_parser_mapadd(cfg->add_parser,
12102 cfg->nzf_config, z, "zone"));
12151 tresult = delete_zoneconf(view, cfg->add_parser,
12152 cfg->nzf_config, name,
12168 do_modzone(ns_server_t *server, ns_cfgctx_t *cfg, dns_view_t *view,
12193 cfg = (ns_cfgctx_t *) view->new_zone_config;
12194 if (cfg == NULL) {
12230 result = configure_zone(cfg->config, zoneobj, cfg->vconfig,
12232 cfg->actx, ISC_TRUE, ISC_FALSE, ISC_TRUE);
12250 result = delete_zoneconf(view, cfg->add_parser,
12251 cfg->nzf_config,
12264 if (cfg->vconfig == NULL) {
12265 result = delete_zoneconf(view, cfg->conf_parser,
12266 cfg->config,
12271 cfg_tuple_get(cfg->vconfig, "options");
12272 result = delete_zoneconf(view, cfg->conf_parser,
12324 CHECK(cfg_parser_mapadd(cfg->add_parser, cfg->nzf_config, z, "zone"));
12376 ns_cfgctx_t *cfg = NULL;
12409 cfg = (ns_cfgctx_t *) view->new_zone_config;
12410 if (cfg == NULL) {
12424 CHECK(do_addzone(server, cfg, view, dnsname, zoneconf,
12427 CHECK(do_modzone(server, cfg, view, dnsname, zonename,
12481 ns_cfgctx_t *cfg;
12497 cfg = (ns_cfgctx_t *) view->new_zone_config;
12508 if (added && cfg != NULL) {
12530 result = delete_zoneconf(view, cfg->add_parser,
12531 cfg->nzf_config,
12544 if (!added && cfg != NULL) {
12545 if (cfg->vconfig != NULL) {
12547 cfg_tuple_get(cfg->vconfig, "options");
12548 result = delete_zoneconf(view, cfg->conf_parser,
12553 result = delete_zoneconf(view, cfg->conf_parser,
12554 cfg->config,
12837 ns_cfgctx_t *cfg = NULL;
12854 cfg = (ns_cfgctx_t *) view->new_zone_config;
12855 if (cfg == NULL) {
12865 vconfig = find_name_in_list_from_map(cfg->config, "view", view->name);
12871 map = cfg->config;
12876 if (zconfig == NULL && cfg->nzf_config != NULL)
12877 zconfig = find_name_in_list_from_map(cfg->nzf_config,
12915 ns_cfgctx_t *cfg;
12919 cfg = *cfgp;
12921 if (cfg->conf_parser != NULL) {
12922 if (cfg->config != NULL)
12923 cfg_obj_destroy(cfg->conf_parser, &cfg->config);
12924 if (cfg->vconfig != NULL)
12925 cfg_obj_destroy(cfg->conf_parser, &cfg->vconfig);
12926 cfg_parser_destroy(&cfg->conf_parser);
12928 if (cfg->add_parser != NULL) {
12929 if (cfg->nzf_config != NULL)
12930 cfg_obj_destroy(cfg->add_parser, &cfg->nzf_config);
12931 cfg_parser_destroy(&cfg->add_parser);
12934 if (cfg->actx != NULL)
12935 cfg_aclconfctx_detach(&cfg->actx);
12937 isc_mem_putanddetach(&cfg->mctx, cfg, sizeof(*cfg));