summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorLiping Zhang <zlpnobody@gmail.com>2017-05-07 10:01:55 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2017-05-15 06:42:29 -0400
commitd91fc59cd77c719f33eda65c194ad8f95a055190 (patch)
treeb39d63460a1b261518ed0fecc72a7ff1cff320c8 /include/net
parentd110a3942aca78d14929bc648aeb83ee0b245a61 (diff)
netfilter: introduce nf_conntrack_helper_put helper function
And convert module_put invocation to nf_conntrack_helper_put, this is prepared for the followup patch, which will add a refcnt for cthelper, so we can reject the deleting request when cthelper is in use. Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_conntrack_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index e04fa7691e5d..c1c12411103a 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -79,6 +79,8 @@ struct nf_conntrack_helper *__nf_conntrack_helper_find(const char *name,
79struct nf_conntrack_helper *nf_conntrack_helper_try_module_get(const char *name, 79struct nf_conntrack_helper *nf_conntrack_helper_try_module_get(const char *name,
80 u16 l3num, 80 u16 l3num,
81 u8 protonum); 81 u8 protonum);
82void nf_conntrack_helper_put(struct nf_conntrack_helper *helper);
83
82void nf_ct_helper_init(struct nf_conntrack_helper *helper, 84void nf_ct_helper_init(struct nf_conntrack_helper *helper,
83 u16 l3num, u16 protonum, const char *name, 85 u16 l3num, u16 protonum, const char *name,
84 u16 default_port, u16 spec_port, u32 id, 86 u16 default_port, u16 spec_port, u32 id,