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/proto.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index 39aa4850..9a9f9255 100644 --- a/include/proto.h +++ b/include/proto.h @@ -130,6 +130,7 @@ extern const struct proto_desc *proto_dev_desc(uint16_t type); /** * struct proto_ctx - protocol context * + * debug_mask: display debugging information * @family: hook family * @location: location of the relational expression defining the context * @desc: protocol description for this layer @@ -140,6 +141,7 @@ extern const struct proto_desc *proto_dev_desc(uint16_t type); * through a dependency. */ struct proto_ctx { + unsigned int debug_mask; unsigned int family; struct { struct location location; @@ -148,7 +150,8 @@ struct proto_ctx { } protocol[PROTO_BASE_MAX + 1]; }; -extern void proto_ctx_init(struct proto_ctx *ctx, unsigned int family); +extern void proto_ctx_init(struct proto_ctx *ctx, unsigned int family, + unsigned int debug_mask); extern void proto_ctx_update(struct proto_ctx *ctx, enum proto_bases base, const struct location *loc, const struct proto_desc *desc); -- cgit v1.2.3