path: root/include/libnftnl
diff options
authorPablo Neira Ayuso <>2014-07-22 23:53:30 +0200
committerPablo Neira Ayuso <>2014-07-25 03:40:01 +0200
commitf127a93dc7f965317176ad0a61125bd55085fb93 (patch)
tree40b88bc917d5bc90749817f7a35172e6ded88bed /include/libnftnl
parent65095e5608168cf77774daa31181755eacbe09e4 (diff)
set_elem: add nft_set_elems_nlmsg_build_payload_iter()
This new interface allows you to put as many set elements as possible into a netlink message. The iterator stores the last element that has fit into a netlink message, so you can continue adding more set elements across several netlink messages. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnftnl')
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h
index 864a803..7f3504f 100644
--- a/include/libnftnl/set.h
+++ b/include/libnftnl/set.h
@@ -123,4 +123,7 @@ struct nft_set_elem *nft_set_elems_iter_cur(struct nft_set_elems_iter *iter);
struct nft_set_elem *nft_set_elems_iter_next(struct nft_set_elems_iter *iter);
void nft_set_elems_iter_destroy(struct nft_set_elems_iter *iter);
+int nft_set_elems_nlmsg_build_payload_iter(struct nlmsghdr *nlh,
+ struct nft_set_elems_iter *iter);
#endif /* _LIBNFTNL_SET_H_ */