path: root/include/mnl.h
diff options
authorPhil Sutter <>2017-07-28 13:55:45 +0200
committerPablo Neira Ayuso <>2017-08-02 15:03:31 +0200
commit119a49a5354c16208ec1bd24500a180bcbe86cd2 (patch)
tree82725fad78b85841ddda3e2d2794824f00a9f39d /include/mnl.h
parentaa4125a0561d7ea656aecfe64670b4ad82d1010b (diff)
mnl: Consolidate mnl_batch_talk() parameters
The single caller of this function passes struct netlink_ctx fields as the first two parameters. This can be simplified by passing the context object itself and having mnl_batch_talk() access it's fields instead. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/mnl.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mnl.h b/include/mnl.h
index 9f5b34f6..31dff2c2 100644
--- a/include/mnl.h
+++ b/include/mnl.h
@@ -2,6 +2,7 @@
#define _NFTABLES_MNL_H_
#include <list.h>
+#include <netlink.h>
struct mnl_socket;
@@ -24,8 +25,7 @@ bool mnl_batch_ready(struct nftnl_batch *batch);
void mnl_batch_reset(struct nftnl_batch *batch);
uint32_t mnl_batch_begin(struct nftnl_batch *batch);
void mnl_batch_end(struct nftnl_batch *batch);
-int mnl_batch_talk(struct mnl_socket *nl, struct nftnl_batch *batch,
- struct list_head *err_list);
+int mnl_batch_talk(struct netlink_ctx *ctx, struct list_head *err_list);
int mnl_nft_rule_batch_add(struct nftnl_rule *nlr, struct nftnl_batch *batch,
unsigned int flags, uint32_t seqnum);
int mnl_nft_rule_batch_del(struct nftnl_rule *nlr, struct nftnl_batch *batch,