summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conncount.c
Commit message (Collapse)AuthorAgeFilesLines
* netfilter: return booleans instead of integersGustavo A. R. Silva2018-01-191-1/+1
| | | | | | | | | | Return statements in functions returning bool should use true/false instead of 1/0. These issues were detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* netfilter: connlimit: split xt_connlimit into front and backendFlorian Westphal2018-01-081-0/+373
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>