From be441e1ffdc2495162399b61053a8f8c18ebc5b6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Aug 2017 18:45:52 +0200 Subject: src: add debugging mask to context structure So this toggle is not global anymore. Update name that fits better with the semantics of this variable. Signed-off-by: Pablo Neira Ayuso --- include/mnl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/mnl.h') diff --git a/include/mnl.h b/include/mnl.h index 72072f7f..3df71467 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -8,6 +8,7 @@ struct mnl_ctx { struct mnl_socket *nf_sock; unsigned int seqnum; + unsigned int debug_mask; }; struct mnl_socket *netlink_open_sock(void); @@ -97,7 +98,7 @@ int mnl_nft_obj_batch_del(struct nftnl_obj *nln, struct nftnl_batch *batch, struct nftnl_ruleset *mnl_nft_ruleset_dump(struct mnl_socket *nf_sock, uint32_t family, uint32_t seqnum); -int mnl_nft_event_listener(struct mnl_socket *nf_sock, +int mnl_nft_event_listener(struct mnl_ctx *ctx, int (*cb)(const struct nlmsghdr *nlh, void *data), void *cb_data); -- cgit v1.2.3