]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_numgen: add map lookups for numgen statements
authorLaura Garcia Liebana <nevola@gmail.com>
Sun, 22 Apr 2018 09:03:23 +0000 (11:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 6 May 2018 21:18:44 +0000 (23:18 +0200)
commitd1c27eba05edefc857f57fa08f61ac1d96868676
tree11c94757bc31fd657764c505928d124207d738c9
parent97bdfd43aa626e8ca71bd426a6a02c76c8e69dee
netfilter: nft_numgen: add map lookups for numgen statements

This patch includes a new attribute in the numgen structure to allow
the lookup of an element based on the number generator as a key.

For this purpose, different ops have been included to extend the
current numgen inc functions.

Currently, only supported for numgen incremental operations, but
it will be supported for random in a follow-up patch.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_numgen.c