ulogd2 update
cover ulogd2 update
Hi,
This set of patches updates ulogd2 ULOG plugin to current API and fix a crash.
BR,
--
Eric Leblond
INL : http://www.inl.fr
NuFW, Now User Filtering Works (http://www.nufw.org)
PATCH 1/3 ulogd2 update
Hi,
This patch synchronizes ULOG input plugin with current ulogd2 API.
BR
--
Eric Leblond
INL : http://www.inl.fr
NuFW, Now User Filtering Works (http://www.nufw.org)
=== input/packet/ulogd_inppkt_ULOG.c
==================================================================
packet/ulogd_inppkt_ULOG.c +1 -0
@@ -234,6 +234,7 @@ ui->ulog_fd.fd =ipulog_get_fd (ui->libulog_h); ui->ulog_fd.cb = &ulog_read_cb; ui->ulog_fd.data = upi; + ui->ulog_fd.when =ULOGD_FD_READ ;ulogd_register_fd (&ui->ulog_fd);
PATCH 2/3 ulogd2 update
In reply to Eric LeblondHi,
This patch fixes a crash in ULOG input plugin due to a free on invalid value.
BR,
--
Eric Leblond
INL : http://www.inl.fr
NuFW, Now User Filtering Works (http://www.nufw.org)
=== input/packet/ulogd_inppkt_ULOG.c
==================================================================
packet/ulogd_inppkt_ULOG.c +2 -2
@@ -58,12 +58,12 @@static struct ulogd_key output_keys[] = { { .type =ULOGD_RET_STRING , - .flags =ULOGD_RETF_FREE , + .flags =ULOGD_RETF_NONE , .name ="raw.mac" , }, { .type =ULOGD_RET_RAW , - .flags =ULOGD_RETF_FREE , + .flags =ULOGD_RETF_NONE , .name ="raw.pkt" , .ipfix = { .vendor =IPFIX_VENDOR_NETFILTER ,
PATCH 3/3 ulogd2 update
In reply to Eric LeblondHi,
This patch fixes a trivial typo in ULOG plugin code.
BR,
--
Eric Leblond
INL : http://www.inl.fr
NuFW, Now User Filtering Works (http://www.nufw.org)
=== input/packet/ulogd_inppkt_ULOG.c
==================================================================
packet/ulogd_inppkt_ULOG.c +1 -1
@@ -13,7 +13,7 @@#define ULOGD_NLGROUP_DEFAULT 32#endif -/* Size of the socket recevive memory. Should be at least the same size as the +/* Size of the socket receive memory. Should be at least the same size as the * 'nlbufsiz' module loadtime parameter of ipt_ULOG.o * If you have _big_ in-kernel queues, you may have to increase this number. ( * --qthreshold 100 * 1500 bytes/packet = 150kB */
Quoted 1 line · Eric Leblond
This patch fixes a trivial typo in ULOG plugin code.
All three patches applied, thanks Eric.