summaryrefslogtreecommitdiffstats
path: root/examples/netfilter/nfct-create-batch.c
diff options
context:
space:
mode:
authorKen-ichirou MATSUZAWA <chamaken@gmail.com>2013-12-07 20:23:10 +0900
committerFlorian Westphal <fw@strlen.de>2013-12-07 12:53:46 +0100
commit73b9805968e430d4328f5eca78574b6c0987f2cf (patch)
treedf611dc5d0c3941640522171c96eea89bb415021 /examples/netfilter/nfct-create-batch.c
parentc7a66dd8c1cc25889fdb91c5ef92e92d55119497 (diff)
examples: fix trivial error message
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'examples/netfilter/nfct-create-batch.c')
-rw-r--r--examples/netfilter/nfct-create-batch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/netfilter/nfct-create-batch.c b/examples/netfilter/nfct-create-batch.c
index dd6623f..40cd2f6 100644
--- a/examples/netfilter/nfct-create-batch.c
+++ b/examples/netfilter/nfct-create-batch.c
@@ -87,7 +87,7 @@ send_batch(struct mnl_socket *nl, struct mnl_nlmsg_batch *b, int portid)
ret = mnl_socket_sendto(nl, mnl_nlmsg_batch_head(b), len);
if (ret == -1) {
- perror("mnl_socket_recvfrom");
+ perror("mnl_socket_sendto");
exit(EXIT_FAILURE);
}
@@ -116,7 +116,7 @@ send_batch(struct mnl_socket *nl, struct mnl_nlmsg_batch *b, int portid)
NULL, NULL, cb_ctl_array,
MNL_ARRAY_SIZE(cb_ctl_array));
if (ret == -1) {
- perror("mnl_cb_run");
+ perror("mnl_cb_run2");
exit(EXIT_FAILURE);
}