Lines Matching refs:data
97 DB *data; /*%< dns_data database handle */
110 char *data;
122 * bdb_parse_data function. The char (type & data) fields should not
123 * be "free"d as that memory is part of the DBT data field. It will be
136 * zone(a space)host(a space)ttl(a space)type(a space)remaining data
199 /* save pointer to remainder of DNS data */
200 pd->data = tmp;
226 DBT key, data;
235 key.data = strdup(name);
236 if (key.data == NULL) {
240 key.size = strlen(key.data);
242 memset(&data, 0, sizeof(DBT));
243 data.flags = DB_DBT_MALLOC;
244 data.data = strdup(client);
245 if (data.data == NULL) {
249 data.size = strlen(data.data);
251 /* get a cursor to loop through zone data */
257 switch(client_cursor->c_get(client_cursor, &key, &data, DB_GET_BOTH)) {
272 if (key.data != NULL)
273 free(key.data);
275 /* free any memory allocated to the data field. */
276 if (data.data != NULL)
277 free(data.data);
295 DBT key, data;
304 memset(&data, 0, sizeof(DBT));
306 key.data = tmp_zone = strdup(zone);
308 if (key.data == NULL)
311 key.size = strlen(key.data);
313 /* get a cursor to loop through zone data */
321 while ((bdbres = zone_cursor->c_get(zone_cursor, &key, &data,
326 tmp = realloc(tmp, data.size + 1);
330 strncpy(tmp, data.data, data.size);
331 tmp[data.size] = '\0';
337 pd.ttl, pd.data);
372 if (db->data != NULL)
373 db->data->close(db->data, 0);
402 DBT key, data;
407 memset(&data, 0, sizeof(DBT));
408 data.flags = DB_DBT_MALLOC;
410 key.data = strdup(name);
412 if (key.data == NULL)
415 key.size = strlen(key.data);
417 /* get a cursor to loop through zone data */
423 switch(zone_cursor->c_get(zone_cursor, &key, &data, DB_SET)) {
438 if (key.data != NULL)
439 free(key.data);
441 /* free any memory allocated to the data field. */
442 if (data.data != NULL)
443 free(data.data);
462 DBT key, data;
472 memset(&data, 0, sizeof(DBT));
475 key.data = tmp_zone = strdup(zone);
476 if (key.data == NULL) {
480 key.size = strlen(key.data);
482 /* get a cursor to loop through zone data */
489 if (zone_cursor->c_get(zone_cursor, &key, &data, DB_SET) != 0) {
495 key.data = tmp_host = strdup(name);
496 if (key.data == NULL) {
500 key.size = strlen(key.data);
502 /* get a cursor to loop through host data */
509 if (host_cursor->c_get(host_cursor, &key, &data, DB_SET) != 0) {
518 db->data->join(db->data, cur_arr, &join_cursor, 0);
521 &data, 0)) == 0) {
523 tmp = realloc(tmp, data.size + 1);
527 strncpy(tmp, data.data, data.size);
528 tmp[data.size] = '\0';
533 result = dns_sdlz_putrr(lookup, pd.type, pd.ttl, pd.data);
672 result = bdb_opendb(db->dbenv, DB_UNKNOWN, &db->data,
698 bdbres = db->data->associate(db->data, NULL, db->host, NULL, 0);
710 bdbres = db->data->associate(db->data, NULL, db->zone, NULL, 0);
739 /* bdb_authority not needed as authority data is returned by lookup */