]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4964d1a0b2ba1538751b25bdd486c88b40f439e7
treedbb725d692760415b8349f0625929973a6ffc399
parent3a2ad3169500400abbc50843c2f2729b301caacb
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