mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
netfilter: nf_tables: constify chain type definitions and pointers
Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
93b0806f00
commit
2a37d755b8
11 changed files with 19 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue