]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: remove global nftnl_batch structure in mnl layer
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 17:04:26 +0000 (19:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 17:26:03 +0000 (19:26 +0200)
commit4cb962e4e447dd9ebd13177fca040dd1ff9b8632
treeb212c19a8fa2441c3937d6d2422ed2c73ff80456
parent73ee6f7f4d76c442fb7a3ba3087061b4eef604e3
src: remove global nftnl_batch structure in mnl layer

The underlying mnl layer uses a global nftnl_batch structure. Instead,
pass pointer as parameter to the functions that need this. The netlink
layer stores a reference to this structure in struct netlink_ctx.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/mnl.h
include/netlink.h
src/main.c
src/mnl.c
src/netlink.c