path: root/include/statement.h
diff options
authorFlorian Westphal <>2017-02-28 00:59:07 +0100
committerPablo Neira Ayuso <>2017-02-28 00:59:42 +0100
commited66d9966294a3bab6c8611e369861ba57374743 (patch)
treeaa91c0359789cb81f82a9c06c7be160965ee01be /include/statement.h
parent2d09a04a12c8564f8044788b2e69da04671230d7 (diff)
src: support zone set statement with optional direction
nft automatically understands 'ct zone set 1' but when a direction is specified too we get a parser error since they are currently only allowed for plain ct expressions. This permits the existing syntax ('ct original zone') for all tokens with an optional direction also for set statements. Signed-off-by: Florian Westphal <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/statement.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/statement.h b/include/statement.h
index 8f874c88..317d53e2 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -127,10 +127,12 @@ struct ct_stmt {
enum nft_ct_keys key;
const struct ct_template *tmpl;
struct expr *expr;
+ int8_t direction;
extern struct stmt *ct_stmt_alloc(const struct location *loc,
enum nft_ct_keys key,
+ int8_t direction,
struct expr *expr);
struct dup_stmt {
struct expr *to;