]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: connlimit: split xt_connlimit into front and backend
authorFlorian Westphal <fw@strlen.de>
Sat, 9 Dec 2017 20:01:08 +0000 (21:01 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:01:22 +0000 (18:01 +0100)
commit3400d4a745891a311fbd8d4f0acfe36b600dfbd5
treee67a0e7ac8ae1e482aa0af0f5363a74a37011228
parent3253d301c98447de200b4c792dabf6c1f170aff4
netfilter: connlimit: split xt_connlimit into front and backend

This allows to reuse xt_connlimit infrastructure from nf_tables.
The upcoming nf_tables frontend can just pass in an nftables register
as input key, this allows limiting by any nft-supported key, including
concatenations.

For xt_connlimit, pass in the zone and the ip/ipv6 address.

With help from Yi-Hung Wei.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_count.h [new file with mode: 0644]
include/uapi/linux/netfilter/xt_connlimit.h
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/nf_conncount.c [new file with mode: 0644]
net/netfilter/xt_connlimit.c