From 65422c607e372089677b7b254928d052b9bbe8fb Mon Sep 17 00:00:00 2001 From: xeb Date: Fri, 1 Jan 2010 21:01:51 +0300 Subject: support 2.4.20 kernel --- kernel/driver/pptp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kernel/driver/pptp.c b/kernel/driver/pptp.c index 330349e6..aa9e2f6e 100644 --- a/kernel/driver/pptp.c +++ b/kernel/driver/pptp.c @@ -90,6 +90,20 @@ static inline void *kzalloc(size_t size,int gfp) return p; } +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,4,20) +static inline void nf_reset(struct sk_buff *skb) +{ +#ifdef CONFIG_NETFILTER + nf_conntrack_put(skb->nfct); + skb->nfct=NULL; +#ifdef CONFIG_NETFILTER_DEBUG + skb->nf_debug=0; +#endif +#endif +} +#define __user +#endif + /** * __ffs - find first bit in word. * @word: The word to search -- cgit v1.2.3