freebsd-skq/contrib/bind/tests/irs_testserver.c
peter 4ef23ce695 Import bind v8.2.2.p5, minus the crypto for the time being. The bind
package does have BXA export approval, but the licensing strings on the
dnssafe code are a bit unpleasant.  The crypto is easy to restore and bind
will run without it - just without full dnssec support.

Obtained from:	The Internet Software Consortium (www.isc.org)
1999-11-30 02:43:11 +00:00

29 lines
494 B
C

#include <stdio.h>
#include <stdarg.h>
#include <isc/ctl.h>
#include <isc/eventlib.h>
struct ctl_verb verbs[];
static void
logger(enum ctl_severity sev, const char *fmt, ...) {
va_list ap ;
va_start (ap, fmt) ;
fprintf (stderr, "logger: ");
vfprintf (stderr, fmt, ap) ;
va_end (ap) ;
}
main (int argc, char **argv) {
evContext ctx ;
struct sockaddr addr ;
struct ctl_sctx *sctx ;
sctx = ctl_server(ctx, &addr, verbs, 666, "Go away peon!", 222,
333, 10, 5, 6, logger);
}