]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
Revert "parser: replace "vmap" keyword by "map""
authorPatrick McHardy <kaber@trash.net>
Tue, 14 Jan 2014 12:37:36 +0000 (12:37 +0000)
committerPatrick McHardy <kaber@trash.net>
Tue, 14 Jan 2014 12:37:36 +0000 (12:37 +0000)
This reverts commit 5e8f8a1807917f92e568437598670b0026462c1c.

I missed that this introduces shift-reduce conflicts. Revert for now.

src/parser.y
src/scanner.l

index faa9a33fd63a1acc4f80eaf3a3400df74efa49ad..26e71e37669b6885c5e1ae8d61f6476ff617c261 100644 (file)
@@ -150,6 +150,7 @@ static void location_update(struct location *loc, struct location *rhs, int n)
 %token DASH                    "-"
 %token AT                      "@"
 %token ARROW                   "=>"
+%token VMAP                    "vmap"
 
 %token INCLUDE                 "include"
 %token DEFINE                  "define"
@@ -1206,7 +1207,7 @@ map_expr          :       concat_expr     MAP     expr
                        }
                        ;
 
-verdict_map_expr       :       concat_expr     MAP     expr
+verdict_map_expr       :       concat_expr     VMAP    expr
                        {
                                $$ = map_expr_alloc(&@$, $1, $3);
                        }
index 13b0ce8c411c22d830f0f7c8214a3c91b03d6bb2..cee6aa6ee7553cc7840d81c968cab65b55492b8c 100644 (file)
@@ -210,6 +210,7 @@ addrstring  ({macaddr}|{ip4addr}|{ip6addr})
 "$"                    { return '$'; }
 "="                    { return '='; }
 "=>"                   { return ARROW; }
+"vmap"                 { return VMAP; }
 
 "include"              { return INCLUDE; }
 "define"               { return DEFINE; }