netfilter: nf_conncount: expose connection list interface
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 2 Jan 2019 20:42:01 +0000 (18:42 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:14:51 +0000 (17:14 +0100)
commit15ee3595d2ac6577f179dc688137d60ee92c0984
tree0686f50a0fda8c1c8502615781b506791766e812
parent5e614e212a6359af78b6034ceb12c56f71d5b423
netfilter: nf_conncount: expose connection list interface

commit 5e5cbc7b23eaf13e18652c03efbad5be6995de6a upstream.

This patch provides an interface to maintain the list of connections and
the lookup function to obtain the number of connections in the list.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[mfo: backport: refresh context lines and use older symbol/file names:
 - nf_conntrack_count.h: new file, add include guards.
 - nf_conncount.c -> xt_connlimit.c.
   - nf_conncount_rb -> xt_connlimit_rb
   - nf_conncount_tuple -> xt_connlimit_conn
   - conncount_rb_cachep -> connlimit_rb_cachep
   - conncount_conn_cachep -> connlimit_conn_cachep]
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netfilter/nf_conntrack_count.h [new file with mode: 0644]
net/netfilter/xt_connlimit.c