netfilter: x_tables: add xt_find_table
authorFlorian Westphal <fw@strlen.de>
Wed, 21 Apr 2021 07:51:01 +0000 (09:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Apr 2021 01:20:39 +0000 (03:20 +0200)
commit1ef4d6d1af2d0c0c7c9b391365a3894bea291e34
treedbb725d692760415b8349f0625929973a6ffc399
parent7716bf090e97aec45e97907ec6a382e4610bdd8f
netfilter: x_tables: add xt_find_table

This will be used to obtain the xt_table struct given address family and
table name.

Followup patches will reduce the number of direct accesses to the xt_table
structures via net->ipv{4,6}.ip(6)table_{nat,mangle,...} pointers, then
remove them.

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