From a7f39a9c4c87c86daa3668fe0ea1a6e6c5099e23 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 25 Apr 2018 18:51:08 +0200 Subject: evaluate: missing flowtable evaluation from nested notation Signed-off-by: Pablo Neira Ayuso --- src/evaluate.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/evaluate.c b/src/evaluate.c index e6978ea4..4384e271 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -2956,6 +2956,7 @@ static int chain_evaluate(struct eval_ctx *ctx, struct chain *chain) static int table_evaluate(struct eval_ctx *ctx, struct table *table) { + struct flowtable *ft; struct chain *chain; struct set *set; @@ -2984,6 +2985,12 @@ static int table_evaluate(struct eval_ctx *ctx, struct table *table) if (chain_evaluate(ctx, chain) < 0) return -1; } + list_for_each_entry(ft, &table->flowtables, list) { + handle_merge(&ft->handle, &table->handle); + if (flowtable_evaluate(ctx, ft) < 0) + return -1; + } + ctx->table = NULL; return 0; } -- cgit v1.2.3