diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-09 13:42:37 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-09 14:17:15 -0500 |
commit | 2a37d755b885995443f11cdcaf1f9d4b5f246eab (patch) | |
tree | 8ae3cefff2147663baae9336c555930260f335d8 /net/ipv6 | |
parent | 93b0806f006b8b3ecb7a6183fcad21e88f39904f (diff) |
netfilter: nf_tables: constify chain type definitions and pointers
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 | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/nft_chain_nat_ipv6.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/nft_chain_route_ipv6.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/netfilter/nf_tables_ipv6.c b/net/ipv6/netfilter/nf_tables_ipv6.c index a34027687ecd..758a32b0e2ff 100644 --- a/net/ipv6/netfilter/nf_tables_ipv6.c +++ b/net/ipv6/netfilter/nf_tables_ipv6.c | |||
@@ -90,7 +90,7 @@ static struct pernet_operations nf_tables_ipv6_net_ops = { | |||
90 | .exit = nf_tables_ipv6_exit_net, | 90 | .exit = nf_tables_ipv6_exit_net, |
91 | }; | 91 | }; |
92 | 92 | ||
93 | static struct nf_chain_type filter_ipv6 = { | 93 | static const struct nf_chain_type filter_ipv6 = { |
94 | .family = NFPROTO_IPV6, | 94 | .family = NFPROTO_IPV6, |
95 | .name = "filter", | 95 | .name = "filter", |
96 | .type = NFT_CHAIN_T_DEFAULT, | 96 | .type = NFT_CHAIN_T_DEFAULT, |
diff --git a/net/ipv6/netfilter/nft_chain_nat_ipv6.c b/net/ipv6/netfilter/nft_chain_nat_ipv6.c index e86dcd70dc76..efd1d57a610a 100644 --- a/net/ipv6/netfilter/nft_chain_nat_ipv6.c +++ b/net/ipv6/netfilter/nft_chain_nat_ipv6.c | |||
@@ -170,7 +170,7 @@ static unsigned int nf_nat_ipv6_output(const struct nf_hook_ops *ops, | |||
170 | return ret; | 170 | return ret; |
171 | } | 171 | } |
172 | 172 | ||
173 | static struct nf_chain_type nft_chain_nat_ipv6 = { | 173 | static const struct nf_chain_type nft_chain_nat_ipv6 = { |
174 | .family = NFPROTO_IPV6, | 174 | .family = NFPROTO_IPV6, |
175 | .name = "nat", | 175 | .name = "nat", |
176 | .type = NFT_CHAIN_T_NAT, | 176 | .type = NFT_CHAIN_T_NAT, |
diff --git a/net/ipv6/netfilter/nft_chain_route_ipv6.c b/net/ipv6/netfilter/nft_chain_route_ipv6.c index 3fe40f0456ad..3620f8851eba 100644 --- a/net/ipv6/netfilter/nft_chain_route_ipv6.c +++ b/net/ipv6/netfilter/nft_chain_route_ipv6.c | |||
@@ -59,7 +59,7 @@ static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops, | |||
59 | return ret; | 59 | return ret; |
60 | } | 60 | } |
61 | 61 | ||
62 | static struct nf_chain_type nft_chain_route_ipv6 = { | 62 | static const struct nf_chain_type nft_chain_route_ipv6 = { |
63 | .family = NFPROTO_IPV6, | 63 | .family = NFPROTO_IPV6, |
64 | .name = "route", | 64 | .name = "route", |
65 | .type = NFT_CHAIN_T_ROUTE, | 65 | .type = NFT_CHAIN_T_ROUTE, |