summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-04-21 09:51:01 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-26 03:20:39 +0200
commit1ef4d6d1af2d0c0c7c9b391365a3894bea291e34 (patch)
treedbb725d692760415b8349f0625929973a6ffc399 /include/linux/netfilter
parent7716bf090e97aec45e97907ec6a382e4610bdd8f (diff)
downloadlinux-stable-1ef4d6d1af2d0c0c7c9b391365a3894bea291e34.tar.gz
linux-stable-1ef4d6d1af2d0c0c7c9b391365a3894bea291e34.tar.bz2
linux-stable-1ef4d6d1af2d0c0c7c9b391365a3894bea291e34.zip
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>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/x_tables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 8ec48466410a..b2eec7de5280 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -322,6 +322,7 @@ struct xt_target *xt_request_find_target(u8 af, const char *name, u8 revision);
int xt_find_revision(u8 af, const char *name, u8 revision, int target,
int *err);
+struct xt_table *xt_find_table(struct net *net, u8 af, const char *name);
struct xt_table *xt_find_table_lock(struct net *net, u_int8_t af,
const char *name);
struct xt_table *xt_request_find_table_lock(struct net *net, u_int8_t af,