diff options
author | Florian Westphal <fw@strlen.de> | 2017-05-24 20:05:54 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-09-27 20:02:07 +0200 |
commit | db3ffc6eba301a93387d999d5c10e3b9e75d7660 (patch) | |
tree | a7d9f596756220ba434f372339dc806163d5e0aa /src/parser_bison.y | |
parent | 14fd3ad720f6ea629814b8e9307169010f596f6b (diff) |
src: parser_bison: rename ct_block to ct_helper_block
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index b9eb2b9d..ce6a77a8 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -514,7 +514,7 @@ static void location_update(struct location *loc, struct location *rhs, int n) %type <set> map_block_alloc map_block %destructor { set_free($$); } map_block_alloc -%type <obj> obj_block_alloc counter_block quota_block ct_block limit_block +%type <obj> obj_block_alloc counter_block quota_block ct_helper_block limit_block %destructor { obj_free($$); } obj_block_alloc %type <list> stmt_list @@ -876,7 +876,7 @@ add_cmd : TABLE table_spec { $$ = cmd_alloc(CMD_ADD, CMD_OBJ_QUOTA, &$2, &@$, $3); } - | CT HELPER obj_spec ct_obj_alloc '{' ct_block '}' stmt_separator + | CT HELPER obj_spec ct_obj_alloc '{' ct_helper_block '}' stmt_separator { $$ = cmd_alloc_obj_ct(CMD_ADD, NFT_OBJECT_CT_HELPER, &$3, &@$, $4); @@ -951,7 +951,7 @@ create_cmd : TABLE table_spec { $$ = cmd_alloc(CMD_CREATE, CMD_OBJ_QUOTA, &$2, &@$, $3); } - | CT HELPER obj_spec ct_obj_alloc '{' ct_block '}' stmt_separator + | CT HELPER obj_spec ct_obj_alloc '{' ct_helper_block '}' stmt_separator { $$ = cmd_alloc_obj_ct(CMD_CREATE, NFT_OBJECT_CT_HELPER, &$3, &@$, $4); } @@ -1293,7 +1293,7 @@ table_block : /* empty */ { $$ = $<table>-1; } list_add_tail(&$4->list, &$1->objs); $$ = $1; } - | table_block CT HELPER obj_identifier obj_block_alloc '{' ct_block '}' stmt_separator + | table_block CT HELPER obj_identifier obj_block_alloc '{' ct_helper_block '}' stmt_separator { $5->location = @4; $5->type = NFT_OBJECT_CT_HELPER; @@ -1512,10 +1512,10 @@ quota_block : /* empty */ { $$ = $<obj>-1; } } ; -ct_block : /* empty */ { $$ = $<obj>-1; } - | ct_block common_block - | ct_block stmt_separator - | ct_block ct_helper_config +ct_helper_block : /* empty */ { $$ = $<obj>-1; } + | ct_helper_block common_block + | ct_helper_block stmt_separator + | ct_helper_block ct_helper_config { $$ = $1; } |