db_test.c revision 70e5a7403f0e0a3bd292b8287c5fed5772c15270
c0682c23675731274a86416914fb7e3c5861606aTinderbox User * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 1999-2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
c0682c23675731274a86416914fb7e3c5861606aTinderbox User * purpose with or without fee is hereby granted, provided that the above
db8938c993d3eaeae1d86feb1b5da511831a9014Mark Andrews * copyright notice and this permission notice appear in all copies.
/* $Id: db_test.c,v 1.64 2007/06/19 23:46:59 tbox Exp $ */
#include <config.h>
#include <stdlib.h>
typedef struct dbinfo {
int rcount;
int hold_count;
int pause_every;
} dbinfo;
static int pause_every = 0;
len = 0;
isc_region_t r;
&text);
static dbinfo *
return (cache_dbi);
NULL);
return (NULL);
return (dbi);
NULL);
seekname);
&rdsiter);
static isc_result_t
return (ISC_R_NOMEMORY);
for (i = 0; i < MAXVERSIONS; i++)
for (i = 0; i < MAXHOLD; i++)
NULL);
return (result);
return (result);
return (result);
if (cache) {
return (result);
return (ISC_R_SUCCESS);
unload_all(void) {
int ch;
char *origintext;
unsigned int addopts;
switch (ch) {
if (argc != 0)
if (time_lookups) {
while (!done) {
if (!quiet)
len--;
if (addmode)
if (delmode)
if (holdmode)
if (printnode)
if (find_zonecut)
if (noexact_zonecut)
zcoptions = 0;
if (noexact_zonecut)
&db);
if (!quiet) {
&tb1);
if (noexact_zonecut)
if (!quiet) {
switch (result) {
case ISC_R_SUCCESS:
case DNS_R_GLUE:
case DNS_R_CNAME:
case DNS_R_ZONECUT:
case DNS_R_DNAME:
case DNS_R_DELEGATION:
case DNS_R_NXRRSET:
if (holdmode) {
MAXHOLD);
node;
case DNS_R_NXDOMAIN:
if (quiet)
if (printnode)
&rdsiter);
if (!quiet)
if (!quiet)
if (!quiet)
addopts = 0;
0, &rdataset,
if (printnode)
if (printnode)
if (holdmode) {
if (time_lookups) {
unload_all();
if (!quiet)