From c9fc2e7843e56eec84d92b5baa208afdb5b81d3c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 26 Oct 2008 20:48:55 +0100 Subject: ftfw: add option `-v' to output debugging information (if any) This patch introduces the option `-v' to show useful debugging information, if any. As for now, only sync-ftfw.c make use of it to display the content and the length of the resent list/queue. This is useful to check for message leaks. Other working modes or synchronization approaches may use it to display debugging information in the future. This patch removes _SIGNAL_DEBUG in sync-ftfw.c that was used for for the same purpose. However, it could only be enabled at compilation time and it uses signalling instead of the standard UNIX socket interface that conntrackd provides. Signed-off-by: Pablo Neira Ayuso --- include/conntrackd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/conntrackd.h b/include/conntrackd.h index c0bb4bb..448d594 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -25,6 +25,7 @@ #define DUMP_INT_XML 24 /* dump internal cache in XML */ #define DUMP_EXT_XML 25 /* dump external cache in XML */ #define RESET_TIMERS 26 /* reset kernel timers */ +#define DEBUG_INFO 27 /* show debug info (if any) */ #define DEFAULT_CONFIGFILE "/etc/conntrackd/conntrackd.conf" #define DEFAULT_LOCKFILE "/var/lock/conntrackd.lock" -- cgit v1.2.3