From b4953803f26c442cdec4cad78a8261e9b97cd015 Mon Sep 17 00:00:00 2001 From: "Pablo M. Bermudo Garay" Date: Fri, 23 Jun 2017 18:38:25 +0200 Subject: src: add --check option flag Sometimes it can be useful to test if a command is valid without applying any change to the rule-set. This commit adds a new option flag (-c | --check) that performs a dry run execution of the commands. Signed-off-by: Pablo M. Bermudo Garay Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/nftables.h') diff --git a/include/nftables.h b/include/nftables.h index dbd46377..26fd3441 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -33,6 +33,7 @@ struct output_ctx { struct nft_ctx { struct output_ctx output; + bool check; }; extern unsigned int max_errors; -- cgit v1.2.3