diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-03 07:16:16 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-07 17:57:25 -0500 |
commit | 1d49144c0aaa61be4e3ccbef9cc5c40b0ec5f2fe (patch) | |
tree | 1711f39fb9f9ba1fed9bcb9afcf55499b0cef3b6 /net/ipv6 | |
parent | 115a60b173af0170e0db26b9a3fd6a911fba70a3 (diff) |
netfilter: nf_tables: add "inet" table for IPv4/IPv6
This patch adds a new table family and a new filter chain that you can
use to attach IPv4 and IPv6 rules. This should help to simplify
rule-set maintainance in dual-stack setups.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/nf_tables_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/nf_tables_ipv6.c b/net/ipv6/netfilter/nf_tables_ipv6.c index 642280e44b65..025e7f4e8ac5 100644 --- a/net/ipv6/netfilter/nf_tables_ipv6.c +++ b/net/ipv6/netfilter/nf_tables_ipv6.c | |||
@@ -47,7 +47,7 @@ static unsigned int nft_ipv6_output(const struct nf_hook_ops *ops, | |||
47 | return nft_do_chain_ipv6(ops, skb, in, out, okfn); | 47 | return nft_do_chain_ipv6(ops, skb, in, out, okfn); |
48 | } | 48 | } |
49 | 49 | ||
50 | static struct nft_af_info nft_af_ipv6 __read_mostly = { | 50 | struct nft_af_info nft_af_ipv6 __read_mostly = { |
51 | .family = NFPROTO_IPV6, | 51 | .family = NFPROTO_IPV6, |
52 | .nhooks = NF_INET_NUMHOOKS, | 52 | .nhooks = NF_INET_NUMHOOKS, |
53 | .owner = THIS_MODULE, | 53 | .owner = THIS_MODULE, |
@@ -60,6 +60,7 @@ static struct nft_af_info nft_af_ipv6 __read_mostly = { | |||
60 | [NF_INET_POST_ROUTING] = nft_do_chain_ipv6, | 60 | [NF_INET_POST_ROUTING] = nft_do_chain_ipv6, |
61 | }, | 61 | }, |
62 | }; | 62 | }; |
63 | EXPORT_SYMBOL_GPL(nft_af_ipv6); | ||
63 | 64 | ||
64 | static int nf_tables_ipv6_init_net(struct net *net) | 65 | static int nf_tables_ipv6_init_net(struct net *net) |
65 | { | 66 | { |