summaryrefslogtreecommitdiffstats
path: root/include/internal
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-10-12 13:24:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-08 23:40:33 +0100
commitb245e4092c5a7f09729e64868a42e13f48ac5db8 (patch)
treea31692d718120b9c17951e2e583c3a7d554602ab /include/internal
parent417dc5fb87ade355d699ea523de870abc6dd1657 (diff)
src: allow to use nfct handler for conntrack and expectations at the same time
This patch re-works the callback handling to allow the use the same socket to send/receive commands and listen to events of both conntrack and expectation subsystems. Now you can register one callback for conntrack and one for expectation with the same handler with no problems (before this patch, this was not possible, you required two different handlers). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/object.h b/include/internal/object.h
index 4263ef0..8d95aa1 100644
--- a/include/internal/object.h
+++ b/include/internal/object.h
@@ -16,7 +16,8 @@ struct nfct_handle {
struct nfnl_subsys_handle *nfnlssh_exp;
/* callback handler for the new API */
- struct nfnl_callback nfnl_cb;
+ struct nfnl_callback nfnl_cb_ct;
+ struct nfnl_callback nfnl_cb_exp;
int (*cb)(enum nf_conntrack_msg_type type,
struct nf_conntrack *ct,