netfilter: nft_set_pipapo: .walk does not deal with generations
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 16 Jun 2023 13:20:04 +0000 (15:20 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 20 Jun 2023 20:43:40 +0000 (22:43 +0200)
commit2b84e215f87443c74ac0aa7f76bb172d43a87033
tree67b8eb54749b225c0164da4d084885124a20e945
parent628bd3e49cba1c066228e23d71a852c23e26da73
netfilter: nft_set_pipapo: .walk does not deal with generations

The .walk callback iterates over the current active set, but it might be
useful to iterate over the next generation set. Use the generation mask
to determine what set view (either current or next generation) is use
for the walk iteration.

Fixes: 3c4287f62044 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_pipapo.c