From aedf4454f5c2c5ef5896011240eae6ad47b91e53 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 30 May 2016 16:36:43 +0200 Subject: [PATCH] Configure options for tracing messages (and a secret hidden one to keep connections open) --- configure.ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 63391889..daf8d539 100644 --- a/configure.ac +++ b/configure.ac @@ -143,12 +143,14 @@ ACX_ARG_RPATH AC_ARG_ENABLE(debug-sched, AC_HELP_STRING([--enable-debug-sched], [Enable scheduling debugging messages])) AC_ARG_ENABLE(debug-stub, AC_HELP_STRING([--enable-debug-stub], [Enable stub debugging messages])) AC_ARG_ENABLE(debug-sec, AC_HELP_STRING([--enable-debug-sec], [Enable dnssec debugging messages])) +AC_ARG_ENABLE(debug-trace, AC_HELP_STRING([--enable-debug-trace], [Enable trace debugging of individual dns messages])) AC_ARG_ENABLE(all-debugging, AC_HELP_STRING([--enable-all-debugging], [Enable scheduling, stub and dnssec debugging])) case "$enable_all_debugging" in yes) enable_debug_sched=yes enable_debug_stub=yes enable_debug_sec=yes + enable_debug_trace=yes ;; no|*) ;; @@ -174,6 +176,25 @@ case "$enable_debug_sec" in no|*) ;; esac +case "$enable_debug_trace" in + yes) + AC_DEFINE_UNQUOTED([TRACE_DEBUG], [1], [Define this enable printing of transaction ids of individual dns messages.]) + ;; + no|*) + ;; +esac + + +dnl Hidden debugging options +dnl +AC_ARG_ENABLE(debug-keep-connections-open,[]) +case "$enable_debug_keep_connections_open" in + yes) + AC_DEFINE_UNQUOTED([KEEP_CONNECTIONS_OPEN_DEBUG], [1], [Do not set this]) + ;; + no) + ;; +esac AC_ARG_ENABLE(tcp-fastopen, AC_HELP_STRING([--disable-tcp-fastopen], Disable TCP Fast Open (default=enabled if available)), enable_tcp_fastopen="$enableval", enable_tcp_fastopen=yes)