Skip to contentSkip to conversation

ulogd: minor fix and improvement

PATCH Applied Eric Leblond 2 participants 5 messages Aug 28, 2011 – Sep 1, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

cover ulogd: minor fix and improvement

Hello,

Here is a small patchset that fix the build of pcap output plugin on some platform (patch 1) and which adds a missing option of the pcap plugin to the configuration file (patch 2).

BR,
--
Eric

#1 lore raw

PATCH 1/2 pcap: fix build on some recent x86_64 platform.

---
 acinclude.m4 |    3 ++-
 configure.ac |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
acinclude.m4 +2 -1
index 9a8e1ae..56d47b8 100644
@@ -218,6 +218,7 @@ AC_ARG_WITH(pcap-lib,
 
 AC_SUBST(PCAP_INC)
 AC_SUBST(PCAP_LIB)
+AC_SUBST(HAVE_PCAP_LIB)
 
 if test "$pcap_prefix" != "no"; then
 
@@ -261,7 +262,7 @@ if test "$PCAP_INC" = "" ; then
   AC_CHECK_HEADER([pcap.h], [], AC_MSG_WARN(pcap.h not found))
 fi
 if test "$PCAP_LIB" = "" ; then
-  AC_CHECK_LIB(pcap, pcap_close, [], AC_MSG_WARN(libpcap.so not found))
+  AC_CHECK_LIB(pcap, pcap_close, [HAVE_PCAP_LIB="yes"], AC_MSG_WARN(libpcap.so not found))
 fi
 
 fi
configure.ac +1 -1
index f835707..e8f8427 100644
@@ -57,7 +57,7 @@ CT_CHECK_DBI()
 AM_CONDITIONAL(HAVE_DBI, test "x$DBI_LIB" != "x")
 
 CT_CHECK_PCAP()
-AM_CONDITIONAL(HAVE_PCAP, test "x$PCAP_LIB" != "x")
+AM_CONDITIONAL(HAVE_PCAP, test "x$HAVE_PCAP_LIB" != "x")
 
 
 dnl AC_SUBST(DATABASE_DIR)
Signature · 1 line
1.7.5.4
maintainer Applied
#2 lore raw

Re: [PATCH 1/2] pcap: fix build on some recent x86_64 platform.

Quoted 4 lines · Eric Leblond
---
 acinclude.m4 |    3 ++-
 configure.ac |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Applied, thanks Eric.

#3 lore raw

PATCH 2/2 pcap: add file option to configuration file

In reply to Eric Leblond
---
 ulogd.conf.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
ulogd.conf.in +2 -0
index b7b714b..5fe2639 100644
@@ -171,6 +171,8 @@ directory="/var/log/"
 sync=1
 
 [pcap1]
+#default file is /var/log/ulogd.pcap
+#file=/var/log/ulogd.pcap
 sync=1
 
 [mysql1]
Signature · 1 line
1.7.5.4
#4 lore raw

Re: [PATCH 2/2] pcap: add file option to configuration file

Quoted 3 lines · Eric Leblond
---
 ulogd.conf.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Also applied, thanks.