]> asedeno.scripts.mit.edu Git - linux.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)
commitd734a2888922efa521f9eb8dfe6790ced8f62bb7
tree11c94757bc31fd657764c505928d124207d738c9
parent8b2ebb6cf064247d60cccbf1750610ac9bb2e672
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