/*
* Copyright (C) 2000-2002, 2004, 2005, 2007, 2012, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: byaddr_test.c,v 1.28 2007/06/19 23:46:59 tbox Exp $ */
/*! \file
* \author
* Principal Author: Bob Halley
*/
#include <config.h>
#include <stdlib.h>
#include <isc/commandline.h>
#include <dns/dispatch.h>
#include <dns/resolver.h>
static void
printf("byaddr event result = %s\n",
}
}
}
int
int ch;
unsigned int options = 0;
switch (ch) {
case 'n':
/*
* We only try nibbles, so do nothing for this option.
*/
break;
case 'v':
break;
case 'w':
break;
}
}
if (verbose) {
}
== ISC_R_SUCCESS);
== ISC_R_SUCCESS);
dispatchmgr = NULL;
== ISC_R_SUCCESS);
&cache) == ISC_R_SUCCESS);
&view) == ISC_R_SUCCESS);
{
unsigned int attrs;
if (isc_net_probeipv4() == ISC_R_SUCCESS) {
512, 6, 1024,
== ISC_R_SUCCESS);
}
if (isc_net_probeipv6() == ISC_R_SUCCESS) {
512, 6, 1024,
== ISC_R_SUCCESS);
}
timermgr, 0,
}
{
== ISC_R_SUCCESS);
}
printf("unknown address format\n");
exit(1);
}
}
if (result != ISC_R_SUCCESS) {
printf("dns_byaddr_create() returned %s\n",
RUNTIME_CHECK(0);
}
(void)isc_app_run();
/*
* XXXRTH if we get a control-C before we get to isc_app_run(),
* we're in trouble (because we might try to destroy things before
* they've been created.
*/
if (verbose)
return (0);
}