summaryrefslogtreecommitdiffstats
path: root/include/statement.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-12-09 16:46:26 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-12-17 17:24:49 +0100
commit242965f452e64fef9faff6689df4b2c205823209 (patch)
tree2eaab70fe894e57984a9392fb6bc423ccab5ccbf /include/statement.h
parentca7464bf51f3784b29e29a40cee2c73f1f0c4f7e (diff)
src: add support for multi-statement in dynamic sets and maps
This patch allows for two statements for dynamic set updates, e.g. nft rule x y add @y { ip daddr limit rate 1/second counter } Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/statement.h')
-rw-r--r--include/statement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/statement.h b/include/statement.h
index f2fc6ade..7637a82e 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -201,7 +201,7 @@ uint32_t fwd_stmt_type(const char *type);
struct set_stmt {
struct expr *set;
struct expr *key;
- struct stmt *stmt;
+ struct list_head stmt_list;
enum nft_dynset_ops op;
};
@@ -213,7 +213,7 @@ struct map_stmt {
struct expr *set;
struct expr *key;
struct expr *data;
- struct stmt *stmt;
+ struct list_head stmt_list;
enum nft_dynset_ops op;
};