Update nlog plufin to provide more information to other ones
PATCH 1/1 Update nlog plufin to provide more information to other ones
CT_INFO is absolutely necessary while rther are not due to presence of NFLOG_KEY_RAW. Anyway i did this way
Added missed dependency on LIBMNL here
--- configure.ac | 3 +- input/packet/Makefile.am | 5 +- input/packet/ulogd_inppkt_NFLOG.c | 105 ++++++++++++++++++++++-------- 3 files changed, 83 insertions(+), 30 deletions(-)
configure.ac +2 -1
@@ -45,7 +45,8 @@ AC_ARG_ENABLE([nflog], [enable_nflog=$enableval], [enable_nflog=yes]) AS_IF([test "x$enable_nflog" = "xyes"], - [PKG_CHECK_MODULES([LIBNETFILTER_LOG], [libnetfilter_log >= 1.0.2]) + [PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.5]) + PKG_CHECK_MODULES([LIBNETFILTER_LOG], [libnetfilter_log >= 1.0.2]) AC_DEFINE([BUILD_NFLOG], [1], [Building nflog module])], [enable_nflog=no]) AM_CONDITIONAL([BUILD_NFLOG], [test "x$enable_nflog" = "xyes"])
input/packet/Makefile.am +3 -2
@@ -1,6 +1,6 @@ include $(top_srcdir)/Make_global.am -AM_CPPFLAGS += ${LIBNETFILTER_LOG_CFLAGS} ${LIBNETFILTER_CONNTRACK_CFLAGS} +AM_CPPFLAGS += ${LIBNETFILTER_LOG_CFLAGS} ${LIBNETFILTER_CONNTRACK_CFLAGS} ${LIBMNL_CFLAGS} pkglib_LTLIBRARIES = ulogd_inppkt_UNIXSOCK.la
@@ -12,6 +12,7 @@ pkglib_LTLIBRARIES += ulogd_inppkt_NFLOG.la ulogd_inppkt_NFLOG_la_SOURCES = ulogd_inppkt_NFLOG.c ulogd_inppkt_NFLOG_la_LDFLAGS = -avoid-version -module -ulogd_inppkt_NFLOG_la_LIBADD = $(LIBNETFILTER_LOG_LIBS) \ +ulogd_inppkt_NFLOG_la_LIBADD = $(LIBMNL_LIBS) \ + $(LIBNETFILTER_LOG_LIBS) \ $(LIBNETFILTER_CONNTRACK_LIBS) endif
input/packet/ulogd_inppkt_NFLOG.c +78 -27
191 lines not on this page · raw message
Signature · 1 line
2.51.0