ulogd: minor fix and improvement
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
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
@@ -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
@@ -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
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
@@ -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
Re: [PATCH 1/2] pcap: fix build on some recent x86_64 platform.
In reply to Eric LeblondQuoted 4 lines · Eric Leblond
--- acinclude.m4 | 3 ++- configure.ac | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Applied, thanks Eric.
Pablo Neira Ayuso
maintainerRe: [PATCH 2/2] pcap: add file option to configuration file
In reply to Eric LeblondQuoted 3 lines · Eric Leblond
--- ulogd.conf.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Also applied, thanks.