|
@@ -74,27 +74,6 @@ EXPORT_SYMBOL_GPL(__nf_ct_l4proto_find);
|
|
|
|
|
|
/* this is guaranteed to always return a valid protocol helper, since
|
|
|
* it falls back to generic_protocol */
|
|
|
-struct nf_conntrack_l4proto *
|
|
|
-nf_ct_l4proto_find_get(u_int16_t l3proto, u_int8_t l4proto)
|
|
|
-{
|
|
|
- struct nf_conntrack_l4proto *p;
|
|
|
-
|
|
|
- rcu_read_lock();
|
|
|
- p = __nf_ct_l4proto_find(l3proto, l4proto);
|
|
|
- if (!try_module_get(p->me))
|
|
|
- p = &nf_conntrack_l4proto_generic;
|
|
|
- rcu_read_unlock();
|
|
|
-
|
|
|
- return p;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(nf_ct_l4proto_find_get);
|
|
|
-
|
|
|
-void nf_ct_l4proto_put(struct nf_conntrack_l4proto *p)
|
|
|
-{
|
|
|
- module_put(p->me);
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(nf_ct_l4proto_put);
|
|
|
-
|
|
|
struct nf_conntrack_l3proto *
|
|
|
nf_ct_l3proto_find_get(u_int16_t l3proto)
|
|
|
{
|