diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-01-21 22:10:25 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-01-23 12:55:00 +0100 |
commit | 83b4dbe19844b5472a8f44b6cf1d88693c080ef7 (patch) | |
tree | d02bf69fd9692f9ba62abb9f3d311b59f9318ad8 /include/net/netfilter/nf_conntrack_expect.h | |
parent | f94161c1bbdf7af11729cf106b4452f2432448e0 (diff) | |
download | op-kernel-dev-83b4dbe19844b5472a8f44b6cf1d88693c080ef7.zip op-kernel-dev-83b4dbe19844b5472a8f44b6cf1d88693c080ef7.tar.gz |
netfilter: nf_ct_expect: move initialization out of pernet_operations
Move the global initial codes to the module_init/exit context.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_conntrack_expect.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack_expect.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_expect.h b/include/net/netfilter/nf_conntrack_expect.h index cc13f37..cbbae76 100644 --- a/include/net/netfilter/nf_conntrack_expect.h +++ b/include/net/netfilter/nf_conntrack_expect.h @@ -69,8 +69,11 @@ struct nf_conntrack_expect_policy { #define NF_CT_EXPECT_CLASS_DEFAULT 0 -int nf_conntrack_expect_init(struct net *net); -void nf_conntrack_expect_fini(struct net *net); +int nf_conntrack_expect_pernet_init(struct net *net); +void nf_conntrack_expect_pernet_fini(struct net *net); + +int nf_conntrack_expect_init(void); +void nf_conntrack_expect_fini(void); struct nf_conntrack_expect * __nf_ct_expect_find(struct net *net, u16 zone, |