]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
scanner: add helpers token
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Apr 2018 09:40:50 +0000 (11:40 +0200)
committerFlorian Westphal <fw@strlen.de>
Tue, 17 Apr 2018 21:23:01 +0000 (23:23 +0200)
without it, you get:
 nft list ct helpers table filter
 Error: syntax error, unexpected string, expecting helper or helpers

Fixes: 14fd3ad720f6e ("src: prepare for future ct timeout policy support")
Signed-off-by: Florian Westphal <fw@strlen.de>
src/scanner.l

index ba60ec17c32a803b7bde33ba9d7f3374205fe2a9..f3544ce5e7709652420efa398c419a5ac3f0c8f4 100644 (file)
@@ -507,6 +507,7 @@ addrstring  ({macaddr}|{ip4addr}|{ip6addr})
 "event"                        { return EVENT; }
 "expiration"           { return EXPIRATION; }
 "helper"               { return HELPER; }
+"helpers"              { return HELPERS; }
 "label"                        { return LABEL; }
 "state"                        { return STATE; }
 "status"               { return STATUS; }