[netfilter-cvslog] r7413 - branches/ulog/ulogd2/input/packet
pablo at netfilter.org
pablo at netfilter.org
Tue Mar 25 11:01:34 CET 2008
Author: pablo at netfilter.org
Date: 2008-03-25 11:01:34 +0100 (Tue, 25 Mar 2008)
New Revision: 7413
Modified:
branches/ulog/ulogd2/input/packet/ulogd_inppkt_NFLOG.c
Log:
An instance of NFLOG can now be use in multiple stacks. This is done
by duplicating the interpretation of the message.
Signed-off-by: Eric Leblond <eric at inl.fr>
Modified: branches/ulog/ulogd2/input/packet/ulogd_inppkt_NFLOG.c
===================================================================
--- branches/ulog/ulogd2/input/packet/ulogd_inppkt_NFLOG.c 2008-03-25 09:57:12 UTC (rev 7412)
+++ branches/ulog/ulogd2/input/packet/ulogd_inppkt_NFLOG.c 2008-03-25 10:01:34 UTC (rev 7413)
@@ -370,7 +370,16 @@
struct nflog_data *nfa, void *data)
{
struct ulogd_pluginstance *upi = data;
+ struct ulogd_pluginstance *npi = NULL;
+ int ret = 0;
+ /* since we support the re-use of one instance in several
+ * different stacks, we duplicate the message to let them know */
+ llist_for_each_entry(npi, &upi->plist, plist) {
+ ret = interp_packet(npi, nfa);
+ if (ret != 0)
+ return ret;
+ }
return interp_packet(upi, nfa);
}
More information about the netfilter-cvslog
mailing list