summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/nft-chain-add.c2
-rw-r--r--examples/nft-chain-del.c2
-rw-r--r--examples/nft-chain-parse-add.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/examples/nft-chain-add.c b/examples/nft-chain-add.c
index ca1edf9..e0d889d 100644
--- a/examples/nft-chain-add.c
+++ b/examples/nft-chain-add.c
@@ -138,6 +138,8 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+ mnl_nlmsg_batch_stop(batch);
+
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
while (ret > 0) {
ret = mnl_cb_run(buf, ret, chain_seq, portid, NULL, NULL);
diff --git a/examples/nft-chain-del.c b/examples/nft-chain-del.c
index b756b46..e99bb8a 100644
--- a/examples/nft-chain-del.c
+++ b/examples/nft-chain-del.c
@@ -114,6 +114,8 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+ mnl_nlmsg_batch_stop(batch);
+
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
while (ret > 0) {
ret = mnl_cb_run(buf, ret, chain_seq, portid, NULL, NULL);
diff --git a/examples/nft-chain-parse-add.c b/examples/nft-chain-parse-add.c
index 6d6d989..a9ee8e9 100644
--- a/examples/nft-chain-parse-add.c
+++ b/examples/nft-chain-parse-add.c
@@ -149,6 +149,8 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+ mnl_nlmsg_batch_stop(batch);
+
ret = mnl_socket_recvfrom(nl, buf, sizeof(buf));
while (ret > 0) {
ret = mnl_cb_run(buf, ret, chain_seq, portid, NULL, NULL);