Lines Matching refs:cd

90 	config_data_t *cd;
96 cd = (config_data_t *) dbdata;
98 result = dns_sdlz_putnamedrr(allnodes, cd->myname, "soa", 86400,
103 result = dns_sdlz_putnamedrr(allnodes, "ns", "ns", 86400, cd->myname);
106 result = dns_sdlz_putnamedrr(allnodes, cd->myname, "a", 1, cd->myip);
128 config_data_t *cd;
132 cd = (config_data_t *) dbdata;
134 if (strcmp(zone, cd->myzone) == 0) {
135 result = dns_sdlz_putsoa(lookup, cd->myname,
140 result = dns_sdlz_putrr(lookup, "ns", 86400, cd->myname);
153 config_data_t *cd;
157 cd = (config_data_t *) dbdata;
164 if (strcmp(cd->myzone, name) == 0)
176 config_data_t *cd;
181 cd = (config_data_t *) dbdata;
183 if (strcmp(name, cd->myname) == 0) {
184 result = dns_sdlz_putrr(lookup, "a", 1, cd->myip);
200 config_data_t *cd;
215 cd = isc_mem_get(ns_g_mctx, sizeof(config_data_t));
216 if ((cd) == NULL) {
220 memset(cd, 0, sizeof(config_data_t));
222 cd->myzone = isc_mem_strdup(ns_g_mctx, argv[1]);
223 if (cd->myzone == NULL) {
224 isc_mem_put(ns_g_mctx, cd, sizeof(config_data_t));
228 cd->myname = isc_mem_strdup(ns_g_mctx, argv[2]);
229 if (cd->myname == NULL) {
230 isc_mem_put(ns_g_mctx, cd, sizeof(config_data_t));
231 isc_mem_free(ns_g_mctx, cd->myzone);
235 cd->myip = isc_mem_strdup(ns_g_mctx, argv[3]);
236 if (cd->myip == NULL) {
237 isc_mem_put(ns_g_mctx, cd, sizeof(config_data_t));
238 isc_mem_free(ns_g_mctx, cd->myname);
239 isc_mem_free(ns_g_mctx, cd->myzone);
243 isc_mem_attach(ns_g_mctx, &cd->mctx);
245 *dbdata = cd;
253 config_data_t *cd;
258 cd = (config_data_t *) dbdata;
267 isc_mem_free(ns_g_mctx, cd->myzone);
268 isc_mem_free(ns_g_mctx, cd->myname);
269 isc_mem_free(ns_g_mctx, cd->myip);
270 mctx = cd->mctx;
271 isc_mem_put(mctx, cd, sizeof(config_data_t));