aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ipv4/netfilter/ip_tables.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-04-21 09:51:00 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-04-26 03:20:08 +0200
commit7716bf090e97aec45e97907ec6a382e4610bdd8f (patch)
tree28cde0e7ff8dee9d848f75caa246e63d122454fd /net/ipv4/netfilter/ip_tables.c
parentnetfilter: ebtables: remove the 3 ebtables pointers from struct net (diff)
downloadwireguard-linux-7716bf090e97aec45e97907ec6a382e4610bdd8f.tar.xz
wireguard-linux-7716bf090e97aec45e97907ec6a382e4610bdd8f.zip
netfilter: x_tables: remove ipt_unregister_table
Its the same function as ipt_unregister_table_exit. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4/netfilter/ip_tables.c')
-rw-r--r--net/ipv4/netfilter/ip_tables.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index f77ea0dbe656..2fa7f28b88e3 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -1770,14 +1770,6 @@ void ipt_unregister_table_exit(struct net *net, struct xt_table *table)
__ipt_unregister_table(net, table);
}
-void ipt_unregister_table(struct net *net, struct xt_table *table,
- const struct nf_hook_ops *ops)
-{
- if (ops)
- ipt_unregister_table_pre_exit(net, table, ops);
- __ipt_unregister_table(net, table);
-}
-
/* Returns 1 if the type and code is matched by the range, 0 otherwise */
static inline bool
icmp_type_code_match(u_int8_t test_type, u_int8_t min_code, u_int8_t max_code,
@@ -1924,7 +1916,6 @@ static void __exit ip_tables_fini(void)
}
EXPORT_SYMBOL(ipt_register_table);
-EXPORT_SYMBOL(ipt_unregister_table);
EXPORT_SYMBOL(ipt_unregister_table_pre_exit);
EXPORT_SYMBOL(ipt_unregister_table_exit);
EXPORT_SYMBOL(ipt_do_table);