Lines Matching refs:data

87 	DB	*data;		/*%< dns_data database handle */
99 char *data;
131 * bdbhpt_parse_data function. The char (type & data) fields should not
132 * be "free"d as that memory is part of the DBT data field. It will be
153 * remaining data
218 /* save pointer to remainder of DNS data */
219 pd->data = tmp;
244 DBT key, data;
253 key.data = strdup(name);
254 if (key.data == NULL) {
258 key.size = strlen(key.data);
260 memset(&data, 0, sizeof(DBT));
261 data.flags = DB_DBT_MALLOC;
262 data.data = strdup(client);
263 if (data.data == NULL) {
267 data.size = strlen(data.data);
269 switch(db->client->get(db->client, NULL, &key, &data, DB_GET_BOTH)) {
283 if (key.data != NULL)
284 free(key.data);
286 /* free any memory allocated to the data field. */
287 if (data.data != NULL)
288 free(data.data);
299 * is associated to the primary DB with the DNS data. Then have
304 * 2) Blow up database size by storing DNS data twice. Once for
312 * together to lookup the data in the dns_data database. YES -
343 xfr_key.data = tmp_zone = strdup(zone);
344 if (xfr_key.data == NULL)
347 xfr_key.size = strlen(xfr_key.data);
356 if (db->data->cursor(db->data, NULL, &dns_cursor, 0) != 0) {
373 dns_key.data = tmp_zone_host = malloc(dns_key.size + 1);
374 if (dns_key.data == NULL)
381 strcpy(dns_key.data, zone);
382 strcat(dns_key.data, " ");
383 strncat(dns_key.data, xfr_data.data, xfr_data.size);
398 /* copy data to tmp string, and append null term. */
399 strncpy(tmp, dns_data.data, dns_data.size);
402 /* split string into dns data parts. */
407 pd.type, pd.ttl, pd.data);
454 if (db->data != NULL)
455 db->data->close(db->data, 0);
484 DBT key, data;
491 memset(&data, 0, sizeof(DBT));
492 data.flags = DB_DBT_MALLOC;
494 key.data = strdup(name);
496 if (key.data == NULL)
504 key.data = bdbhpt_strrev(key.data);
505 key.size = strlen(key.data);
507 switch(db->zone->get(db->zone, NULL, &key, &data, 0)) {
519 if (key.data != NULL)
520 free(key.data);
522 /* free any memory allocated to the data field. */
523 if (data.data != NULL)
524 free(data.data);
538 DBT key, data;
551 memset(&data, 0, sizeof(DBT));
556 key.data = keyStr = malloc((key.size + 1) * sizeof(char));
565 /* get a cursor to loop through data */
566 if (db->data->cursor(db->data, NULL, &data_cursor, 0) != 0) {
574 while ((bdbhptres = data_cursor->c_get(data_cursor, &key, &data,
578 tmp = realloc(tmp, data.size + 1);
582 strncpy(tmp, data.data, data.size);
583 tmp[data.size] = '\0';
588 result = dns_sdlz_putrr(lookup, pd.type, pd.ttl, pd.data);
757 result = bdbhpt_opendb(db->dbenv, DB_UNKNOWN, &db->data,
799 * bdbhpt_authority not needed as authority data is returned by lookup