summaryrefslogtreecommitdiff
path: root/include/debug.h
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-20 21:13:06 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-05-20 21:13:06 +0000
commit9f1b4b2d028129966f7e6f23cec6ac0712c2b1b6 (patch)
treed635d4e4ad7dac6918470676bf222f27d21f192e /include/debug.h
parent2932c6b8e6952ae84b221b854b43810c61e5c8fa (diff)
downloadconntrack-tools-9f1b4b2d028129966f7e6f23cec6ac0712c2b1b6.tar.gz
conntrack-tools-9f1b4b2d028129966f7e6f23cec6ac0712c2b1b6.zip
- introduce cache_iterate
- empty debug_ct function if DEBUG_CT is not set - revisit overrun handler: this is a hard battle, just try to do our best here, call Patrick :) - explicit warning message when netlink_buffer_max_growth is reached - fix silly bug in stats-mode when dumping in XML format - fix UDP handler for conntrack
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h
index 67f2c71..4d1f44f 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -11,8 +11,11 @@
#include <netinet/in.h>
#include <libnetfilter_conntrack/libnetfilter_conntrack.h>
+#undef DEBUG_CT
+
static inline void debug_ct(struct nf_conntrack *ct, char *msg)
{
+#ifdef DEBUG_CT
struct in_addr addr, addr2, addr3, addr4;
debug("----%s (%p) ----\n", msg, ct);
@@ -48,6 +51,7 @@ static inline void debug_ct(struct nf_conntrack *ct, char *msg)
inet_ntoa(addr4),
ntohs(nfct_get_attr_u16(ct, ATTR_REPL_PORT_DST)));
debug("-------------------------\n");
+#endif
}
#endif