diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-01-21 17:10:24 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-01-23 06:53:35 -0500 |
commit | f94161c1bbdf7af11729cf106b4452f2432448e0 (patch) | |
tree | c1f76b19cf4daf088421e0f75fd0fff6371c4a9c /include/net | |
parent | 8a454ab95e5ccbffd04363e9c028f60739bc3fa4 (diff) |
netfilter: nf_conntrack: move initialization out of pernet operations
nf_conntrack initialization and cleanup codes happens in pernet
operations function. This task should be done in module_init/exit.
We can't use init_net to identify if it's the right time to initialize
or cleanup since we cannot make assumption on the order netns are
created/destroyed.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack_core.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_core.h b/include/net/netfilter/nf_conntrack_core.h index e98aeb3da033..e05c1f67055c 100644 --- a/include/net/netfilter/nf_conntrack_core.h +++ b/include/net/netfilter/nf_conntrack_core.h | |||
@@ -25,12 +25,16 @@ extern unsigned int nf_conntrack_in(struct net *net, | |||
25 | unsigned int hooknum, | 25 | unsigned int hooknum, |
26 | struct sk_buff *skb); | 26 | struct sk_buff *skb); |
27 | 27 | ||
28 | extern int nf_conntrack_init(struct net *net); | 28 | extern int nf_conntrack_init_net(struct net *net); |
29 | extern void nf_conntrack_cleanup(struct net *net); | 29 | extern void nf_conntrack_cleanup_net(struct net *net); |
30 | 30 | ||
31 | extern int nf_conntrack_proto_init(struct net *net); | 31 | extern int nf_conntrack_proto_init(struct net *net); |
32 | extern void nf_conntrack_proto_fini(struct net *net); | 32 | extern void nf_conntrack_proto_fini(struct net *net); |
33 | 33 | ||
34 | extern int nf_conntrack_init_start(void); | ||
35 | extern void nf_conntrack_cleanup_start(void); | ||
36 | |||
37 | extern void nf_conntrack_init_end(void); | ||
34 | extern void nf_conntrack_cleanup_end(void); | 38 | extern void nf_conntrack_cleanup_end(void); |
35 | 39 | ||
36 | extern bool | 40 | extern bool |