From b245e4092c5a7f09729e64868a42e13f48ac5db8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 12 Oct 2010 13:24:08 +0200 Subject: 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 --- include/internal/object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/internal') 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, -- cgit v1.2.3