Lines Matching refs:data

96 	DB	*data;		/*%< dns_data database handle */
108 char *data;
139 * bdbhpt_parse_data function. The char (type & data) fields should not
140 * be "free"d as that memory is part of the DBT data field. It will be
161 * remaining data
226 /* save pointer to remainder of DNS data */
227 pd->data = tmp;
252 DBT key, data;
261 key.data = strdup(name);
262 if (key.data == NULL) {
266 key.size = strlen(key.data);
268 memset(&data, 0, sizeof(DBT));
269 data.flags = DB_DBT_MALLOC;
270 data.data = strdup(client);
271 if (data.data == NULL) {
275 data.size = strlen(data.data);
277 switch(db->client->get(db->client, NULL, &key, &data, DB_GET_BOTH)) {
291 if (key.data != NULL)
292 free(key.data);
294 /* free any memory allocated to the data field. */
295 if (data.data != NULL)
296 free(data.data);
307 * is associated to the primary DB with the DNS data. Then have
312 * 2) Blow up database size by storing DNS data twice. Once for
320 * together to lookup the data in the dns_data database. YES -
351 xfr_key.data = tmp_zone = strdup(zone);
352 if (xfr_key.data == NULL)
355 xfr_key.size = strlen(xfr_key.data);
364 if (db->data->cursor(db->data, NULL, &dns_cursor, 0) != 0) {
381 dns_key.data = tmp_zone_host = malloc(dns_key.size + 1);
382 if (dns_key.data == NULL)
389 strcpy(dns_key.data, zone);
390 strcat(dns_key.data, " ");
391 strncat(dns_key.data, xfr_data.data, xfr_data.size);
406 /* copy data to tmp string, and append null term. */
407 strncpy(tmp, dns_data.data, dns_data.size);
410 /* split string into dns data parts. */
415 pd.type, pd.ttl, pd.data);
462 if (db->data != NULL)
463 db->data->close(db->data, 0);
491 DBT key, data;
496 memset(&data, 0, sizeof(DBT));
497 data.flags = DB_DBT_MALLOC;
499 key.data = strdup(name);
501 if (key.data == NULL)
509 key.data = bdbhpt_strrev(key.data);
510 key.size = strlen(key.data);
512 switch(db->zone->get(db->zone, NULL, &key, &data, 0)) {
524 if (key.data != NULL)
525 free(key.data);
527 /* free any memory allocated to the data field. */
528 if (data.data != NULL)
529 free(data.data);
542 DBT key, data;
553 memset(&data, 0, sizeof(DBT));
558 key.data = keyStr = malloc((key.size + 1) * sizeof(char));
567 /* get a cursor to loop through data */
568 if (db->data->cursor(db->data, NULL, &data_cursor, 0) != 0) {
576 while ((bdbhptres = data_cursor->c_get(data_cursor, &key, &data,
580 tmp = realloc(tmp, data.size + 1);
584 strncpy(tmp, data.data, data.size);
585 tmp[data.size] = '\0';
590 result = dns_sdlz_putrr(lookup, pd.type, pd.ttl, pd.data);
759 result = bdbhpt_opendb(db->dbenv, DB_UNKNOWN, &db->data,
801 * bdbhpt_authority not needed as authority data is returned by lookup