diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-12-09 15:36:24 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-08 18:01:20 +0100 |
commit | 12355d3670dac0dde5aae3deefb59f8cc0a9ed2a (patch) | |
tree | e215f48aad6a2fba132bea70827fda64bc57fe81 /net/ipv4/netfilter/nf_tables_ipv4.c | |
parent | cb7ccd835ebb333669e400f99c650e4f3abf11c0 (diff) | |
download | linux-12355d3670dac0dde5aae3deefb59f8cc0a9ed2a.tar.gz linux-12355d3670dac0dde5aae3deefb59f8cc0a9ed2a.tar.bz2 linux-12355d3670dac0dde5aae3deefb59f8cc0a9ed2a.zip |
netfilter: nf_tables_inet: don't use multihook infrastructure anymore
Use new native NFPROTO_INET support in netfilter core, this gets rid of
ad-hoc code in the nf_tables API codebase.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4/netfilter/nf_tables_ipv4.c')
-rw-r--r-- | net/ipv4/netfilter/nf_tables_ipv4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_tables_ipv4.c b/net/ipv4/netfilter/nf_tables_ipv4.c index 35fa265d1ce3..b6223f4b1315 100644 --- a/net/ipv4/netfilter/nf_tables_ipv4.c +++ b/net/ipv4/netfilter/nf_tables_ipv4.c @@ -45,7 +45,7 @@ static unsigned int nft_ipv4_output(void *priv, return nft_do_chain_ipv4(priv, skb, state); } -struct nft_af_info nft_af_ipv4 __read_mostly = { +static struct nft_af_info nft_af_ipv4 __read_mostly = { .family = NFPROTO_IPV4, .nhooks = NF_INET_NUMHOOKS, .owner = THIS_MODULE, @@ -58,7 +58,6 @@ struct nft_af_info nft_af_ipv4 __read_mostly = { [NF_INET_POST_ROUTING] = nft_do_chain_ipv4, }, }; -EXPORT_SYMBOL_GPL(nft_af_ipv4); static int nf_tables_ipv4_init_net(struct net *net) { |