aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_conntrack_compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_compat.h b/include/net/netfilter/nf_conntrack_compat.h
index f1b1482d7200..b9ce5c80d9d5 100644
--- a/include/net/netfilter/nf_conntrack_compat.h
+++ b/include/net/netfilter/nf_conntrack_compat.h
@@ -64,6 +64,16 @@ static inline int nf_ct_get_ctinfo(const struct sk_buff *skb,
64 return (ct != NULL); 64 return (ct != NULL);
65} 65}
66 66
67static inline int nf_ct_l3proto_try_module_get(unsigned short l3proto)
68{
69 need_conntrack();
70 return l3proto == PF_INET ? 0 : -1;
71}
72
73static inline void nf_ct_l3proto_module_put(unsigned short l3proto)
74{
75}
76
67#else /* CONFIG_IP_NF_CONNTRACK */ 77#else /* CONFIG_IP_NF_CONNTRACK */
68 78
69#include <net/netfilter/ipv4/nf_conntrack_ipv4.h> 79#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>