X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=net%2Fipv6%2Fnetfilter%2Fnft_chain_route_ipv6.c;h=b2b7effa896b5e0d63798910f76323ace27dc62d;hb=fa2c1de0bbd98985f7f930205de97ae0d3e86c16;hp=3fe40f0456add7bd0272b25a6df05a4d34752632;hpb=b0e3636f656c98bdeded5aaa78601e3256b18d6d;p=deliverable%2Flinux.git diff --git a/net/ipv6/netfilter/nft_chain_route_ipv6.c b/net/ipv6/netfilter/nft_chain_route_ipv6.c index 3fe40f0456ad..b2b7effa896b 100644 --- a/net/ipv6/netfilter/nft_chain_route_ipv6.c +++ b/net/ipv6/netfilter/nft_chain_route_ipv6.c @@ -59,15 +59,15 @@ static unsigned int nf_route_table_hook(const struct nf_hook_ops *ops, return ret; } -static struct nf_chain_type nft_chain_route_ipv6 = { - .family = NFPROTO_IPV6, +static const struct nf_chain_type nft_chain_route_ipv6 = { .name = "route", .type = NFT_CHAIN_T_ROUTE, + .family = NFPROTO_IPV6, + .owner = THIS_MODULE, .hook_mask = (1 << NF_INET_LOCAL_OUT), - .fn = { + .hooks = { [NF_INET_LOCAL_OUT] = nf_route_table_hook, }, - .me = THIS_MODULE, }; static int __init nft_chain_route_init(void)