Lines Matching refs:data

88 	DB	*data;		/*%< dns_data database handle */
101 char *data;
114 * bdb_parse_data function. The char (type & data) fields should not
115 * be "free"d as that memory is part of the DBT data field. It will be
128 * zone(a space)host(a space)ttl(a space)type(a space)remaining data
191 /* save pointer to remainder of DNS data */
192 pd->data = tmp;
218 DBT key, data;
227 key.data = strdup(name);
228 if (key.data == NULL) {
232 key.size = strlen(key.data);
234 memset(&data, 0, sizeof(DBT));
235 data.flags = DB_DBT_MALLOC;
236 data.data = strdup(client);
237 if (data.data == NULL) {
241 data.size = strlen(data.data);
243 /* get a cursor to loop through zone data */
249 switch(client_cursor->c_get(client_cursor, &key, &data, DB_GET_BOTH)) {
264 if (key.data != NULL)
265 free(key.data);
267 /* free any memory allocated to the data field. */
268 if (data.data != NULL)
269 free(data.data);
287 DBT key, data;
296 memset(&data, 0, sizeof(DBT));
298 key.data = tmp_zone = strdup(zone);
300 if (key.data == NULL)
303 key.size = strlen(key.data);
305 /* get a cursor to loop through zone data */
313 while ((bdbres = zone_cursor->c_get(zone_cursor, &key, &data,
318 tmp = realloc(tmp, data.size + 1);
322 strncpy(tmp, data.data, data.size);
323 tmp[data.size] = '\0';
329 pd.ttl, pd.data);
364 if (db->data != NULL)
365 db->data->close(db->data, 0);
395 DBT key, data;
402 memset(&data, 0, sizeof(DBT));
403 data.flags = DB_DBT_MALLOC;
405 key.data = strdup(name);
407 if (key.data == NULL)
410 key.size = strlen(key.data);
412 /* get a cursor to loop through zone data */
418 switch(zone_cursor->c_get(zone_cursor, &key, &data, DB_SET)) {
433 if (key.data != NULL)
434 free(key.data);
436 /* free any memory allocated to the data field. */
437 if (data.data != NULL)
438 free(data.data);
458 DBT key, data;
470 memset(&data, 0, sizeof(DBT));
473 key.data = tmp_zone = strdup(zone);
474 if (key.data == NULL) {
478 key.size = strlen(key.data);
480 /* get a cursor to loop through zone data */
487 if (zone_cursor->c_get(zone_cursor, &key, &data, DB_SET) != 0) {
493 key.data = tmp_host = strdup(name);
494 if (key.data == NULL) {
498 key.size = strlen(key.data);
500 /* get a cursor to loop through host data */
507 if (host_cursor->c_get(host_cursor, &key, &data, DB_SET) != 0) {
516 db->data->join(db->data, cur_arr, &join_cursor, 0);
519 &data, 0)) == 0) {
521 tmp = realloc(tmp, data.size + 1);
525 strncpy(tmp, data.data, data.size);
526 tmp[data.size] = '\0';
531 result = dns_sdlz_putrr(lookup, pd.type, pd.ttl, pd.data);
668 result = bdb_opendb(db->dbenv, DB_UNKNOWN, &db->data,
694 bdbres = db->data->associate(db->data, NULL, db->host, NULL, 0);
706 bdbres = db->data->associate(db->data, NULL, db->zone, NULL, 0);
735 /* bdb_authority not needed as authority data is returned by lookup */