From ed66d9966294a3bab6c8611e369861ba57374743 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 28 Feb 2017 00:59:07 +0100 Subject: 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 --- include/statement.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/statement.h') 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; -- cgit v1.2.3