]> git.ipfire.org Git - thirdparty/nftables.git/commit
scanner: allow prefix in ip6 scope
authorFlorian Westphal <fw@strlen.de>
Wed, 6 Jul 2022 21:49:21 +0000 (23:49 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 6 Jul 2022 22:31:29 +0000 (00:31 +0200)
commit45c097c60b3a5a2151fad976a0006048afce869a
treea148099f1094e838c7163eea83af0e280d9da180
parent6c23bfa512187d509ecc188653a6f232b0695d1d
scanner: allow prefix in ip6 scope

'ip6 prefix' is valid syntax, so make sure scanner recognizes it
also in ip6 context.

Also add test case.

Fixes: a67fce7ffe7e ("scanner: nat: Move to own scope")
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1619
Signed-off-by: Florian Westphal <fw@strlen.de>
src/scanner.l
tests/shell/testcases/sets/0046netmap_0
tests/shell/testcases/sets/dumps/0046netmap_0.nft