diff options
author | xeb <xeb@mail.ru> | 2010-01-01 21:01:51 +0300 |
---|---|---|
committer | xeb <xeb@mail.ru> | 2010-01-01 21:01:51 +0300 |
commit | 65422c607e372089677b7b254928d052b9bbe8fb (patch) | |
tree | 1fe0cfbcf4574031a8c4242bd40182961e255f9c | |
parent | c749aac517ecc7c17fc85fd8756c827efaadf20d (diff) | |
download | accel-ppp-65422c607e372089677b7b254928d052b9bbe8fb.tar.gz accel-ppp-65422c607e372089677b7b254928d052b9bbe8fb.zip |
support 2.4.20 kernel
-rw-r--r-- | kernel/driver/pptp.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 |