summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2011-01-07 13:19:25 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2011-01-07 13:19:25 +0100
commit6c21436c119cd7ba053937229aeb09dfd25925c2 (patch)
treeb10e4130068bbe8a9f4ea78c8b00067ee9094e15 /include
parent4f652cc32aebeac20f46009f146ad973a1ed0e99 (diff)
ulogd: fix double call of stop for reused input plugins
This patch adds reference counting for plugins. This is used to fix a double stop for input plugins that are reused. This problem was reported by Salih Gonullu <sag@open.ch>: http://marc.info/?l=netfilter&m=129439584700693&w=2 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/ulogd/ulogd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h
index 2d1b348..e48caf8 100644
--- a/include/ulogd/ulogd.h
+++ b/include/ulogd/ulogd.h
@@ -208,6 +208,8 @@ struct ulogd_plugin {
char name[ULOGD_MAX_KEYLEN+1];
/* ID for this plugin (dynamically assigned) */
unsigned int id;
+ /* how many stacks are using this plugin? initially set to zero. */
+ unsigned int usage;
struct ulogd_keyset input;
struct ulogd_keyset output;