path: root/include
diff options
authorPablo M. Bermudo Garay <>2017-06-23 18:38:25 +0200
committerPablo Neira Ayuso <>2017-06-26 19:04:56 +0200
commitb4953803f26c442cdec4cad78a8261e9b97cd015 (patch)
treeb44136b4981e5ac1af3e66646bfd5a2daefef41e /include
parentf9d3e2e15b7ad968f30643ca6da55b75f03686fd (diff)
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 <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
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;