summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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