]> 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)
commit29680067c779e3429a62677187ddebe33af835c6
tree11c94757bc31fd657764c505928d124207d738c9
parent71857db21cecaf20128dc59dd44005e1469ea5e8
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