diff options
author | 2013-01-21 22:10:30 +0000 | |
---|---|---|
committer | 2013-01-23 12:56:13 +0100 | |
commit | 5e615b220087c5551f486c967831cecdfd338dbe (patch) | |
tree | 190987e18bed5a1a5a2ca105ac28cbe71164c6cf /include/net | |
parent | netfilter: nf_ct_timeout: move initialization out of pernet_operations (diff) | |
download | linux-5e615b220087c5551f486c967831cecdfd338dbe.tar.gz linux-5e615b220087c5551f486c967831cecdfd338dbe.tar.bz2 linux-5e615b220087c5551f486c967831cecdfd338dbe.zip |
netfilter: nf_ct_helper: 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')
-rw-r--r-- | include/net/netfilter/nf_conntrack_helper.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h index 9aad956d1008..ce27edf57570 100644 --- a/include/net/netfilter/nf_conntrack_helper.h +++ b/include/net/netfilter/nf_conntrack_helper.h @@ -82,8 +82,11 @@ static inline void *nfct_help_data(const struct nf_conn *ct) return (void *)help->data; } -extern int nf_conntrack_helper_init(struct net *net); -extern void nf_conntrack_helper_fini(struct net *net); +extern int nf_conntrack_helper_pernet_init(struct net *net); +extern void nf_conntrack_helper_pernet_fini(struct net *net); + +extern int nf_conntrack_helper_init(void); +extern void nf_conntrack_helper_fini(void); extern int nf_conntrack_broadcast_help(struct sk_buff *skb, unsigned int protoff, |