Re: [PATCH 2/3 v5 nft] Simplify parser rule_spec tree

2016-08-17 Thread Pablo Neira Ayuso
On Wed, Aug 17, 2016 at 01:00:09PM +0200, Carlos Falgueras García wrote: > diff --git a/include/parser.h b/include/parser.h > index 92beab2..41e5340 100644 > --- a/include/parser.h > +++ b/include/parser.h > @@ -27,6 +27,8 @@ struct parser_state { > > struct list_headcmds; >

[PATCH 2/3 v5 nft] Simplify parser rule_spec tree

2016-08-17 Thread Carlos Falgueras García
This patch separates the rule identification from the rule localization, so the logic moves from the evaluator to the parser. This allows to revert the patch "evaluate: improve rule managment checks" (4176c7d30c2ff1b3f52468fc9c08b8df83f979a8) and saves a lot of code. An specific error message is s