[prev in list] [next in list] [prev in thread] [next in thread]
List: oisf-devel
Subject: [Oisf-devel] [PATCH 1/2] source-nfq: autodetection of queue max
From: eric () regit ! org (Eric Leblond)
Date: 2011-01-16 16:18:37
Message-ID: 1295194718-17091-2-git-send-email-eric () regit ! org
[Download RAW message or body]
Signed-off-by: Eric Leblond <eric at regit.org>
---
configure.in | 3 +++
src/source-nfq.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index c74b43c..8277773 100644
--- a/configure.in
+++ b/configure.in
@@ -412,6 +412,9 @@ case $host in
;;
*)
AC_CHECK_LIB(netfilter_queue, nfq_open,, NFQ="no",)
+ AC_CHECK_LIB([netfilter_queue], \
[nfq_set_queue_maxlen],AC_DEFINE_UNQUOTED([HAVE_NFQ_MAXLEN],[1],[Found queue max \
length support in netfilter_queue]) ,,[-lnfnetlink]) +
+
;;
esac
diff --git a/src/source-nfq.c b/src/source-nfq.c
index b7304ba..977dd01 100644
--- a/src/source-nfq.c
+++ b/src/source-nfq.c
@@ -292,8 +292,6 @@ TmEcode NFQInitThread(NFQThreadVars *nfq_t, uint32_t \
queue_maxlen) return TM_ECODE_FAILED;
}
- /* XXX detect this at configure time & make it an option */
-#define HAVE_NFQ_MAXLEN
#ifdef HAVE_NFQ_MAXLEN
if (queue_maxlen > 0) {
SCLogInfo("setting queue length to %" PRId32 "", queue_maxlen);
--
1.7.2.3
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic