netfilter: arp_tables: pass table pointer via nf_hook_ops
authorFlorian Westphal <fw@strlen.de>
Wed, 21 Apr 2021 07:51:08 +0000 (09:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Apr 2021 01:20:46 +0000 (03:20 +0200)
commitf9006acc8dfe59e25aa75729728ac57a8d84fc32
tree9a9b62d8a613174254611680826f23eafc5ca058
parentae689334225ff0e4ef112459ecd24aea932c2b00
netfilter: arp_tables: pass table pointer via nf_hook_ops

Same change as previous patch.  Only difference:
no need to handle NULL template_ops parameter, the only caller
(arptable_filter) always passes non-NULL argument.

This removes all remaining accesses to net->ipv4.arptable_filter.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_arp/arp_tables.h
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/arptable_filter.c