summaryrefslogtreecommitdiffstats
path: root/include/internal
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-07-16 11:38:34 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-07-16 11:38:34 +0200
commitf48fd16527a26fdf0779119a8e1ed889a3b02b23 (patch)
treeaf7f50257b116ab674ecf8b0251e73be0075f15c /include/internal
parent867cda50716d393e132001484c6f0a4ae50e7eb9 (diff)
expect: add new callback interface while keeping backward compatibility
This patch the new expectation callback interface. This change is like 20ed81b10714dfe78e31e9721e2d4f42b4beabb2 but related to expectations. The netlink message contains the portID that is useful to identify the origin of the message. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/object.h b/include/internal/object.h
index cd06b88..04d64b6 100644
--- a/include/internal/object.h
+++ b/include/internal/object.h
@@ -34,6 +34,12 @@ struct nfct_handle {
int (*expect_cb)(enum nf_conntrack_msg_type type,
struct nf_expect *exp,
void *data);
+
+ /* second version of the expect callback: it includes netlink header */
+ int (*expect_cb2)(const struct nlmsghdr *nlh,
+ enum nf_conntrack_msg_type type,
+ struct nf_expect *exp,
+ void *data);
};
/* container used to pass data to nfnl callbacks */