path: root/include/libnftnl
diff options
authorPablo Neira Ayuso <>2014-08-13 12:30:06 +0200
committerPablo Neira Ayuso <>2014-08-14 20:19:49 +0200
commitbc56486503ec594a2bcb2a1e0fd76b23626c0aee (patch)
tree55de9898ed792bbfbff06887d31179b98c16f620 /include/libnftnl
parentf127a93dc7f965317176ad0a61125bd55085fb93 (diff)
common: add batching interfaces
This patch adds the following new interfaces: int nft_batch_is_supported(void); void nft_batch_begin(char *buf, uint32_t seq); void nft_batch_end(char *buf, uint32_t seq); Quite likely this is going to be reused by third party applications requiring to put things in the batch. We already have potential clients for this code in nft and iptables-compat. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnftnl')
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h
index 04d2906..fa3ab60 100644
--- a/include/libnftnl/common.h
+++ b/include/libnftnl/common.h
@@ -36,4 +36,9 @@ struct nlmsghdr *nft_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family,
struct nft_parse_err *nft_parse_err_alloc(void);
void nft_parse_err_free(struct nft_parse_err *);
int nft_parse_perror(const char *str, struct nft_parse_err *err);
+int nft_batch_is_supported(void);
+void nft_batch_begin(char *buf, uint32_t seq);
+void nft_batch_end(char *buf, uint32_t seq);