diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-16 11:38:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-07-16 11:38:34 +0200 |
commit | f48fd16527a26fdf0779119a8e1ed889a3b02b23 (patch) | |
tree | af7f50257b116ab674ecf8b0251e73be0075f15c /src/expect/callback.c | |
parent | 867cda50716d393e132001484c6f0a4ae50e7eb9 (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 'src/expect/callback.c')
-rw-r--r-- | src/expect/callback.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expect/callback.c b/src/expect/callback.c index 6a45b0e..d2cc26e 100644 --- a/src/expect/callback.c +++ b/src/expect/callback.c @@ -31,6 +31,8 @@ int __expect_callback(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data) if (container->h->expect_cb) ret = container->h->expect_cb(type, exp, container->data); + else if (container->h->expect_cb2) + ret = container->h->expect_cb2(nlh, type, exp, container->data); switch(ret) { case NFCT_CB_FAILURE: |