summaryrefslogtreecommitdiffstats
path: root/input/packet/ulogd_inppkt_NFLOG.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/packet/ulogd_inppkt_NFLOG.c')
-rw-r--r--input/packet/ulogd_inppkt_NFLOG.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/input/packet/ulogd_inppkt_NFLOG.c b/input/packet/ulogd_inppkt_NFLOG.c
index e0e8554..802e417 100644
--- a/input/packet/ulogd_inppkt_NFLOG.c
+++ b/input/packet/ulogd_inppkt_NFLOG.c
@@ -370,7 +370,16 @@ static int msg_cb(struct nflog_g_handle *gh, struct nfgenmsg *nfmsg,
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);
}