Only applicable for limit and quota. "ct count" also needs 'over'. Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- src/scanner.l | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index e373ff848ba9..d09189ae4492 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -370,11 +370,13 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "rate" { return RATE; } "burst" { return BURST; } } -"until" { return UNTIL; } -"over" { return OVER; } +<SCANSTATE_CT,SCANSTATE_LIMIT,SCANSTATE_QUOTA>"over" { return OVER; } "quota" { scanner_push_start_cond(yyscanner, SCANSTATE_QUOTA); return QUOTA; } -<SCANSTATE_QUOTA>"used" { return USED; } +<SCANSTATE_QUOTA>{ + "used" { return USED; } + "until" { return UNTIL; } +} "second" { return SECOND; } "minute" { return MINUTE; } -- 2.26.2