Commit f8c20700 authored by Michael Graff's avatar Michael Graff
Browse files

make quick changes to steal code from Bob's wire_test

parent 523b3c81
...@@ -3,7 +3,7 @@ srcdir = @srcdir@ ...@@ -3,7 +3,7 @@ srcdir = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
SUBDIRS = tests SUBDIRS = tests server
TARGETS = TARGETS =
@BIND9_MAKE_RULES@ @BIND9_MAKE_RULES@
...@@ -300,7 +300,7 @@ getsection(isc_buffer_t *source, dns_namelist_t *section, unsigned int count, ...@@ -300,7 +300,7 @@ getsection(isc_buffer_t *source, dns_namelist_t *section, unsigned int count,
} }
} }
static void void
getmessage(dns_message_t *message, isc_buffer_t *source, getmessage(dns_message_t *message, isc_buffer_t *source,
isc_buffer_t *target) isc_buffer_t *target)
{ {
...@@ -438,7 +438,7 @@ printsection(dns_namelist_t *section, char *section_name) { ...@@ -438,7 +438,7 @@ printsection(dns_namelist_t *section, char *section_name) {
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }
static dns_result_t dns_result_t
printmessage(dns_message_t *message) { printmessage(dns_message_t *message) {
isc_boolean_t did_flag = ISC_FALSE; isc_boolean_t did_flag = ISC_FALSE;
unsigned int opcode, rcode; unsigned int opcode, rcode;
...@@ -484,6 +484,7 @@ printmessage(dns_message_t *message) { ...@@ -484,6 +484,7 @@ printmessage(dns_message_t *message) {
return (result); return (result);
} }
#ifndef NOMAIN
int int
main(int argc, char *argv[]) { main(int argc, char *argv[]) {
char *rp, *wp; char *rp, *wp;
...@@ -563,3 +564,4 @@ main(int argc, char *argv[]) { ...@@ -563,3 +564,4 @@ main(int argc, char *argv[]) {
return (0); return (0);
} }
#endif /* !NOMAIN */
...@@ -1635,6 +1635,7 @@ trap 'rm -fr `echo "make/rules ...@@ -1635,6 +1635,7 @@ trap 'rm -fr `echo "make/rules
lib/dns/include/dns/Makefile lib/dns/include/dns/Makefile
bin/Makefile bin/Makefile
bin/tests/Makefile bin/tests/Makefile
bin/server/Makefile
config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF EOF
cat >> $CONFIG_STATUS <<EOF cat >> $CONFIG_STATUS <<EOF
...@@ -1742,6 +1743,7 @@ CONFIG_FILES=\${CONFIG_FILES-"make/rules ...@@ -1742,6 +1743,7 @@ CONFIG_FILES=\${CONFIG_FILES-"make/rules
lib/dns/include/dns/Makefile lib/dns/include/dns/Makefile
bin/Makefile bin/Makefile
bin/tests/Makefile bin/tests/Makefile
bin/server/Makefile
"} "}
EOF EOF
cat >> $CONFIG_STATUS <<\EOF cat >> $CONFIG_STATUS <<\EOF
......
AC_REVISION($Revision: 1.7 $) AC_REVISION($Revision: 1.8 $)
AC_INIT(lib/dns/name.c) AC_INIT(lib/dns/name.c)
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
...@@ -78,4 +78,5 @@ AC_OUTPUT( ...@@ -78,4 +78,5 @@ AC_OUTPUT(
lib/dns/include/dns/Makefile lib/dns/include/dns/Makefile
bin/Makefile bin/Makefile
bin/tests/Makefile bin/tests/Makefile
bin/server/Makefile
) )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment