1 |
diff -up ppp-kmod-1.0.2/kernel_ppp_mppe-1.0.2/patches/linux-2.6.2-pad.patch.padfix ppp-kmod-1.0.2/kernel_ppp_mppe-1.0.2/patches/linux-2.6.2-pad.patch |
2 |
--- patches/linux-2.6.2-pad.patch.padfix 2004-05-30 23:25:14.000000000 -0600 |
3 |
+++ patches/linux-2.6.2-pad.patch 2009-12-01 08:36:07.000000000 -0700 |
4 |
@@ -48,12 +48,16 @@ |
5 |
} |
6 |
} |
7 |
|
8 |
-@@ -1571,7 +1590,7 @@ |
9 |
- goto err; |
10 |
+@@ -1601,10 +1620,10 @@ |
11 |
+ |
12 |
+ switch(ppp->rcomp->compress_proto) { |
13 |
+ case CI_MPPE: |
14 |
+- obuff_size = ppp->mru + PPP_HDRLEN + 1; |
15 |
++ obuff_size = ppp->mru + 128 + PPP_HDRLEN + 1; |
16 |
+ break; |
17 |
+ default: |
18 |
+- obuff_size = ppp->mru + PPP_HDRLEN; |
19 |
++ obuff_size = ppp->mru + 128 + PPP_HDRLEN; |
20 |
+ break; |
21 |
+ } |
22 |
|
23 |
- if (proto == PPP_COMP) { |
24 |
-- ns = dev_alloc_skb(ppp->mru + PPP_HDRLEN); |
25 |
-+ ns = dev_alloc_skb(ppp->mru + 128 + PPP_HDRLEN); |
26 |
- if (ns == 0) { |
27 |
- printk(KERN_ERR "ppp_decompress_frame: no memory\n"); |
28 |
- goto err; |