tkey_test.c revision dbb75545040bd612809c475d9f84affed56d417a
/*
* Copyright (C) 1999 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/*
* Principal Author: Brian Wellington (mostly copied from res_test.c)
*/
#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <isc/assertions.h>
#include <isc/commandline.h>
#include <dns/fixedname.h>
#include <dns/resolver.h>
#include <dns/keyvalues.h>
if ((x) != ISC_R_SUCCESS) { \
exit(-1); \
} \
}
static void buildquery(void);
static void buildquery2(void);
isc_socket_t *s;
static void
printf("senddone\n");
}
static void
printf("recvdone\n");
printf("failed\n");
exit(-1);
}
printf("response ok\n");
buildquery2();
}
static void
printf("senddone2\n");
}
static void
printf("recvdone2\n");
printf("failed\n");
exit(-1);
}
printf("response ok\n");
exit(0);
}
static void
buildquery(void) {
isc_region_t r, inr;
isc_buffer_used(&qbuffer, &r);
}
static void
buildquery2(void) {
isc_region_t r, inr;
0, 0);
isc_buffer_used(&qbuffer, &r);
}
int
unsigned int workers = 2;
int ch;
switch (ch) {
case 'v':
break;
case 'w':
break;
}
}
if (verbose) {
}
if (argc != 0)
printf("ignoring trailing arguments\n");
s = NULL;
isc_sockettype_udp, &s) ==
buildquery();
(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.
*/
isc_socket_detach(&s);
if (verbose)
return (0);
}