diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-22 18:45:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-23 23:42:33 +0200 |
commit | be441e1ffdc2495162399b61053a8f8c18ebc5b6 (patch) | |
tree | 6c49381c37635690f69c8d21f52c24648b53210f /include/mnl.h | |
parent | e1946ec7f11e2c6daa11b141eb344ef44642056f (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'include/mnl.h')
-rw-r--r-- | include/mnl.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |