@@ -767,7 +767,7 @@ map_block : /* empty */ { $$ = $<set>-1; }
}
;
-hook_spec : TYPE STRING HOOK STRING NUM
+hook_spec : TYPE STRING HOOK STRING PRIORITY NUM
{
$<chain>0->type = chain_type_name_lookup($2);
if ($<chain>0->type == NULL) {
@@ -781,10 +781,10 @@ hook_spec : TYPE STRING HOOK STRING NUM
state->msgs);
YYERROR;
}
- $<chain>0->priority = $5;
+ $<chain>0->priority = $6;
$<chain>0->flags |= CHAIN_F_BASECHAIN;
}
- | TYPE STRING HOOK STRING DASH NUM
+ | TYPE STRING HOOK STRING PRIORITY DASH NUM
{
$<chain>0->type = chain_type_name_lookup($2);
if ($<chain>0->type == NULL) {
@@ -798,7 +798,7 @@ hook_spec : TYPE STRING HOOK STRING NUM
state->msgs);
YYERROR;
}
- $<chain>0->priority = -$6;
+ $<chain>0->priority = -$7;
$<chain>0->flags |= CHAIN_F_BASECHAIN;
}
;
@@ -314,7 +314,7 @@ static void chain_print(const struct chain *chain)
printf("\tchain %s {\n", chain->handle.chain);
if (chain->flags & CHAIN_F_BASECHAIN) {
- printf("\t\t type %s hook %s %u;\n", chain->type,
+ printf("\t\t type %s hook %s priority %u;\n", chain->type,
hooknum2str(chain->handle.family, chain->hooknum),
chain->priority);
}
Instead of: add chain foo bar { type route hook input 0; } it should be now: add chain foo bar { type route hook input priority 0; } Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> --- src/parser.y | 8 ++++---- src/rule.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)