From 0e90798e98121abab274434ec60f0b873f510021 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 24 Aug 2018 09:52:17 +0200 Subject: 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 --- include/statement.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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; }; -- cgit v1.2.3