diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2018-03-04 15:29:51 -0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-20 13:27:17 +0100 |
commit | 6aec208786c2a54cbf6135a0242b224e845bef98 (patch) | |
tree | 0cac97076aa4e0fe7344402e5e9061459b6c3d58 /net/netfilter/xt_connlimit.c | |
parent | a55efe1d416c345a73bef38848e1ac7109560e12 (diff) | |
download | op-kernel-dev-6aec208786c2a54cbf6135a0242b224e845bef98.zip op-kernel-dev-6aec208786c2a54cbf6135a0242b224e845bef98.tar.gz |
netfilter: Refactor nf_conncount
Remove parameter 'family' in nf_conncount_count() and count_tree().
It is because the parameter is not useful after commit 625c556118f3
("netfilter: connlimit: split xt_connlimit into front and backend").
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_connlimit.c')
-rw-r--r-- | net/netfilter/xt_connlimit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_connlimit.c b/net/netfilter/xt_connlimit.c index b1b17b9..6275106 100644 --- a/net/netfilter/xt_connlimit.c +++ b/net/netfilter/xt_connlimit.c @@ -67,8 +67,8 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par) key[1] = zone->id; } - connections = nf_conncount_count(net, info->data, key, - xt_family(par), tuple_ptr, zone); + connections = nf_conncount_count(net, info->data, key, tuple_ptr, + zone); if (connections == 0) /* kmalloc failed, drop it entirely */ goto hotdrop; |