[Oisf-devel] [PATCH 1/2] source-nfq: autodetection of queue max length function
Eric Leblond
eric at regit.org
Sun Jan 16 16:18:37 UTC 2011
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
More information about the Oisf-devel
mailing list