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>
This commit is contained in:

committed by
Pablo Neira Ayuso

parent
93b0806f00
commit
2a37d755b8
@@ -90,7 +90,7 @@ static struct pernet_operations nf_tables_ipv6_net_ops = {
|
||||
.exit = nf_tables_ipv6_exit_net,
|
||||
};
|
||||
|
||||
static struct nf_chain_type filter_ipv6 = {
|
||||
static const struct nf_chain_type filter_ipv6 = {
|
||||
.family = NFPROTO_IPV6,
|
||||
.name = "filter",
|
||||
.type = NFT_CHAIN_T_DEFAULT,
|
||||
|
@@ -170,7 +170,7 @@ static unsigned int nf_nat_ipv6_output(const struct nf_hook_ops *ops,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct nf_chain_type nft_chain_nat_ipv6 = {
|
||||
static const struct nf_chain_type nft_chain_nat_ipv6 = {
|
||||
.family = NFPROTO_IPV6,
|
||||
.name = "nat",
|
||||
.type = NFT_CHAIN_T_NAT,
|
||||
|
@@ -59,7 +59,7 @@ static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct nf_chain_type nft_chain_route_ipv6 = {
|
||||
static const struct nf_chain_type nft_chain_route_ipv6 = {
|
||||
.family = NFPROTO_IPV6,
|
||||
.name = "route",
|
||||
.type = NFT_CHAIN_T_ROUTE,
|
||||
|
Reference in New Issue
Block a user