From f0d556b9e3352f85b8ff52515840b25368eb84c4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 21 Sep 2009 13:49:35 +0200 Subject: [PATCH] Suppress nfq debug output. --- src/source-nfq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/source-nfq.c b/src/source-nfq.c index 0e8287fd13..f833ee2a2b 100644 --- a/src/source-nfq.c +++ b/src/source-nfq.c @@ -467,13 +467,19 @@ int DecodeNFQ(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq) PerfCounterSetUI64(dtv->counter_max_pkt_size, tv->pca, p->pktlen); if (IPV4_GET_RAW_VER(ip4h) == 4) { +#ifdef DEBUG printf("DecodeNFQ ip4\n"); +#endif DecodeIPV4(tv, dtv, p, p->pkt, p->pktlen, pq); } else if(IPV6_GET_RAW_VER(ip6h) == 6) { +#ifdef DEBUG printf("DecodeNFQ ip6\n"); +#endif DecodeIPV6(tv, dtv, p, p->pkt, p->pktlen, pq); } else { +#ifdef DEBUG printf("DecodeNFQ %02x\n", *p->pkt); +#endif } return 0;