summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxeb <xeb@mail.ru>2010-01-01 21:01:51 +0300
committerxeb <xeb@mail.ru>2010-01-01 21:01:51 +0300
commit65422c607e372089677b7b254928d052b9bbe8fb (patch)
tree1fe0cfbcf4574031a8c4242bd40182961e255f9c
parentc749aac517ecc7c17fc85fd8756c827efaadf20d (diff)
downloadaccel-ppp-xebd-65422c607e372089677b7b254928d052b9bbe8fb.tar.gz
accel-ppp-xebd-65422c607e372089677b7b254928d052b9bbe8fb.zip
support 2.4.20 kernel
-rw-r--r--kernel/driver/pptp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/driver/pptp.c b/kernel/driver/pptp.c
index 330349e..aa9e2f6 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