summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-08-24 09:52:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-24 09:52:17 +0200
commit0e90798e98121abab274434ec60f0b873f510021 (patch)
treeea0785039aafd7129fa7e39e6df0778cd0a9fcf7 /include
parent03302da063b032e531d8c748d698f03667658645 (diff)
src: simplify map statement
Instead of using the map expression, store dynamic key and data separately since they need special handling than constant maps. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/statement.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/statement.h b/include/statement.h
index 7840e9d2..6c583a91 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -193,7 +193,8 @@ extern struct stmt *set_stmt_alloc(const struct location *loc);
struct map_stmt {
struct expr *set;
- struct expr *map;
+ struct expr *key;
+ struct expr *data;
enum nft_dynset_ops op;
};