From 35f6cd327c2ec46296adf464f981cd6cddfec27b Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Fri, 16 Jun 2017 14:54:06 +0530 Subject: src: Pass stateless, numeric, ip2name and handle variables as structure members. libnftables library will be created soon. So declare numeric_output, stateless_output, ip2name_output and handle_output as members of structure output_ctx, instead of global variables. Rename these variables as following, numeric_output -> numeric stateless_output -> stateless ip2name_output -> ip2name handle_output -> handle Also add struct output_ctx *octx as member of struct netlink_ctx. Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/netlink.h') diff --git a/include/netlink.h b/include/netlink.h index 81538fff..bb25ad48 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -38,6 +38,7 @@ extern const struct location netlink_location; * @set: current set * @data: pointer to pass data to callback * @seqnum: sequence number + * @octx: output context */ struct netlink_ctx { struct list_head *msgs; @@ -47,6 +48,7 @@ struct netlink_ctx { uint32_t seqnum; struct nftnl_batch *batch; bool batch_supported; + struct output_ctx *octx; }; extern struct nftnl_table *alloc_nftnl_table(const struct handle *h); -- cgit v1.2.3