path: root/include/libnetfilter_conntrack
diff options
authorPablo Neira Ayuso <>2009-07-16 11:38:34 +0200
committerPablo Neira Ayuso <>2009-07-16 11:38:34 +0200
commitf48fd16527a26fdf0779119a8e1ed889a3b02b23 (patch)
treeaf7f50257b116ab674ecf8b0251e73be0075f15c /include/libnetfilter_conntrack
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 <>
Diffstat (limited to 'include/libnetfilter_conntrack')
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libnetfilter_conntrack/libnetfilter_conntrack.h b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
index 346039c..b0487b6 100644
--- a/include/libnetfilter_conntrack/libnetfilter_conntrack.h
+++ b/include/libnetfilter_conntrack/libnetfilter_conntrack.h
@@ -519,6 +519,17 @@ extern int nfexp_callback_register(struct nfct_handle *h,
extern void nfexp_callback_unregister(struct nfct_handle *h);
+/* register / unregister callback: extended version including netlink header */
+extern int nfexp_callback_register2(struct nfct_handle *h,
+ enum nf_conntrack_msg_type type,
+ int (*cb)(const struct nlmsghdr *nlh,
+ enum nf_conntrack_msg_type type,
+ struct nf_expect *exp,
+ void *data),
+ void *data);
+extern void nfexp_callback_unregister2(struct nfct_handle *h);
/* setter */
extern void nfexp_set_attr(struct nf_expect *exp,
const enum nf_expect_attr type,