summaryrefslogtreecommitdiff
path: root/examples/netfilter/nfct-create-batch.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-08-16 13:45:22 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-16 14:19:57 +0200
commit81f13e18e455615ca7e81a0e48ebe83f1407eb9e (patch)
treed8e8b6f7dd5a54f030cf8a957ca64b7043a2d2af /examples/netfilter/nfct-create-batch.c
parent5d8772acb878b16b89f6c8c0787603a24fd07088 (diff)
downloadlibmnl-81f13e18e455615ca7e81a0e48ebe83f1407eb9e.tar.gz
examples: update to use the new callback APInew-api
This patch updates all examples to use the new callback API. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/netfilter/nfct-create-batch.c')
-rw-r--r--examples/netfilter/nfct-create-batch.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/netfilter/nfct-create-batch.c b/examples/netfilter/nfct-create-batch.c
index dd6623f..077131c 100644
--- a/examples/netfilter/nfct-create-batch.c
+++ b/examples/netfilter/nfct-create-batch.c
@@ -112,11 +112,12 @@ send_batch(struct mnl_socket *nl, struct mnl_nlmsg_batch *b, int portid)
exit(EXIT_FAILURE);
}
- ret = mnl_cb_run2(rcv_buf, ret, 0, portid,
- NULL, NULL, cb_ctl_array,
- MNL_ARRAY_SIZE(cb_ctl_array));
+ ret = mnl_callback_run2(rcv_buf, ret, 0, portid,
+ NULL, NULL, cb_ctl_array,
+ MNL_ARRAY_SIZE(cb_ctl_array),
+ MNL_CB_F_ANY_SEQ);
if (ret == -1) {
- perror("mnl_cb_run");
+ perror("mnl_callback_run");
exit(EXIT_FAILURE);
}