aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/Kconfig
diff options
context:
space:
mode:
authorLaura Garcia Liebana <nevola@gmail.com>2016-08-18 12:13:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-22 11:42:22 +0200
commit91dbc6be0a62d3bcea98287734d593610aed507d (patch)
tree99b45cb0fc627a16fa2418f806b13ea1c7b0669e /net/netfilter/Kconfig
parent3d2f30a1df907e3ef4175121f0d21456630a72aa (diff)
downloadlinux-91dbc6be0a62d3bcea98287734d593610aed507d.tar.gz
netfilter: nf_tables: add number generator expression
This patch adds the numgen expression that allows us to generated incremental and random numbers, this generator is bound to a upper limit that is specified by userspace. This expression is useful to distribute packets in a round-robin fashion as well as randomly. Signed-off-by: Laura Garcia Liebana <nevola@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/Kconfig')
-rw-r--r--net/netfilter/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
index 29a8078deafa43..e8d56d9a4df2cc 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
@@ -474,6 +474,12 @@ config NFT_META
This option adds the "meta" expression that you can use to match and
to set packet metainformation such as the packet mark.
+config NFT_NUMGEN
+ tristate "Netfilter nf_tables number generator module"
+ help
+ This option adds the number generator expression used to perform
+ incremental counting and random numbers bound to a upper limit.
+
config NFT_CT
depends on NF_CONNTRACK
tristate "Netfilter nf_tables conntrack module"