aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_arp/arp_tables.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-04-21 09:51:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-26 03:20:46 +0200
commitf9006acc8dfe59e25aa75729728ac57a8d84fc32 (patch)
tree9a9b62d8a613174254611680826f23eafc5ca058 /include/linux/netfilter_arp/arp_tables.h
parentnetfilter: ip_tables: pass table pointer via nf_hook_ops (diff)
downloadlinux-dev-f9006acc8dfe59e25aa75729728ac57a8d84fc32.tar.xz
linux-dev-f9006acc8dfe59e25aa75729728ac57a8d84fc32.zip
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>
Diffstat (limited to 'include/linux/netfilter_arp/arp_tables.h')
-rw-r--r--include/linux/netfilter_arp/arp_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h
index 9ec73dcc8fd6..a0474b4e7782 100644
--- a/include/linux/netfilter_arp/arp_tables.h
+++ b/include/linux/netfilter_arp/arp_tables.h
@@ -51,7 +51,7 @@ struct arpt_error {
extern void *arpt_alloc_initial_table(const struct xt_table *);
int arpt_register_table(struct net *net, const struct xt_table *table,
const struct arpt_replace *repl,
- const struct nf_hook_ops *ops, struct xt_table **res);
+ const struct nf_hook_ops *ops);
void arpt_unregister_table(struct net *net, const char *name);
void arpt_unregister_table_pre_exit(struct net *net, const char *name,
const struct nf_hook_ops *ops);