The 'reset' keyword can be used as dccp type, so don't qualify it as
reserve keyword to avoid a conflict with this.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1055
Reported-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
%token WEEK "week"
%token _REJECT "reject"
-%token RESET "reset"
%token WITH "with"
%token ICMPX "icmpx"
$4);
$<stmt>0->reject.expr->dtype = &icmpx_code_type;
}
- | WITH TCP RESET
+ | WITH TCP STRING
{
- $<stmt>0->reject.type = NFT_REJECT_TCP_RST;
+ if (strcmp($3, "reset") == 0) {
+ $<stmt>0->reject.type = NFT_REJECT_TCP_RST;
+ } else {
+ erec_queue(error(&@2, "unsupported reject type", $3),
+ state->msgs);
+ YYERROR;
+ }
}
;
"reject" { return _REJECT; }
"with" { return WITH; }
-"reset" { return RESET; }
"icmpx" { return ICMPX; }
"snat" { return SNAT; }