X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/90fba37c49479ed4e5233dc0d348cdf7d24c9ee1..6262f561d3cbc0d63a39ba8e059ffd38cae20a8e:/target/linux/generic-2.4/patches/106-mppe_mppc.patch diff --git a/target/linux/generic-2.4/patches/106-mppe_mppc.patch b/target/linux/generic-2.4/patches/106-mppe_mppc.patch index 7cc5dc986..dede6dcfb 100644 --- a/target/linux/generic-2.4/patches/106-mppe_mppc.patch +++ b/target/linux/generic-2.4/patches/106-mppe_mppc.patch @@ -4,11 +4,9 @@ Microsoft Point-to-Point Encryption / Compression support http://www.polbox.com/h/hs001/linux-2.4.29-mppe-mppc-1.3.patch.gz -Index: linux-2.4.35.4/Documentation/Configure.help -=================================================================== ---- linux-2.4.35.4.orig/Documentation/Configure.help 2007-12-15 05:19:49.287229757 +0100 -+++ linux-2.4.35.4/Documentation/Configure.help 2007-12-15 05:19:51.927380210 +0100 -@@ -9974,6 +9974,28 @@ +--- a/Documentation/Configure.help ++++ b/Documentation/Configure.help +@@ -9974,6 +9974,28 @@ CONFIG_PPP_BSDCOMP module; it is called bsd_comp.o and will show up in the directory modules once you have said "make modules". If unsure, say N. @@ -37,11 +35,9 @@ Index: linux-2.4.35.4/Documentation/Configure.help PPP over Ethernet CONFIG_PPPOE Support for PPP over Ethernet. -Index: linux-2.4.35.4/crypto/Config.in -=================================================================== ---- linux-2.4.35.4.orig/crypto/Config.in 2007-12-15 05:19:42.094819886 +0100 -+++ linux-2.4.35.4/crypto/Config.in 2007-12-15 05:19:51.927380210 +0100 -@@ -11,7 +11,9 @@ +--- a/crypto/Config.in ++++ b/crypto/Config.in +@@ -11,7 +11,9 @@ if [ "$CONFIG_INET_AH" = "y" -o \ "$CONFIG_INET6_AH" = "y" -o \ "$CONFIG_INET6_AH" = "m" -o \ "$CONFIG_INET6_ESP" = "y" -o \ @@ -52,7 +48,7 @@ Index: linux-2.4.35.4/crypto/Config.in define_bool CONFIG_CRYPTO y else bool 'Cryptographic API' CONFIG_CRYPTO -@@ -51,11 +53,24 @@ +@@ -51,11 +53,24 @@ if [ "$CONFIG_CRYPTO" = "y" ]; then "$CONFIG_INET6_AH" = "y" -o \ "$CONFIG_INET6_AH" = "m" -o \ "$CONFIG_INET6_ESP" = "y" -o \ @@ -81,7 +77,7 @@ Index: linux-2.4.35.4/crypto/Config.in tristate ' SHA256 digest algorithm' CONFIG_CRYPTO_SHA256 tristate ' SHA384 and SHA512 digest algorithms' CONFIG_CRYPTO_SHA512 tristate ' Whirlpool digest algorithms' CONFIG_CRYPTO_WP512 -@@ -76,7 +91,20 @@ +@@ -76,7 +91,20 @@ if [ "$CONFIG_CRYPTO" = "y" ]; then tristate ' TEA and XTEA cipher algorithms' CONFIG_CRYPTO_TEA tristate ' Khazad cipher algorithm' CONFIG_CRYPTO_KHAZAD tristate ' Anubis cipher algorithm' CONFIG_CRYPTO_ANUBIS @@ -102,11 +98,9 @@ Index: linux-2.4.35.4/crypto/Config.in if [ "$CONFIG_INET_IPCOMP" = "y" -o \ "$CONFIG_INET_IPCOMP" = "m" -o \ "$CONFIG_INET6_IPCOMP" = "y" -o \ -Index: linux-2.4.35.4/drivers/net/Config.in -=================================================================== ---- linux-2.4.35.4.orig/drivers/net/Config.in 2007-12-15 05:19:42.102820341 +0100 -+++ linux-2.4.35.4/drivers/net/Config.in 2007-12-15 05:19:51.931380439 +0100 -@@ -336,6 +336,7 @@ +--- a/drivers/net/Config.in ++++ b/drivers/net/Config.in +@@ -336,6 +336,7 @@ if [ ! "$CONFIG_PPP" = "n" ]; then dep_tristate ' PPP support for sync tty ports' CONFIG_PPP_SYNC_TTY $CONFIG_PPP dep_tristate ' PPP Deflate compression' CONFIG_PPP_DEFLATE $CONFIG_PPP dep_tristate ' PPP BSD-Compress compression' CONFIG_PPP_BSDCOMP $CONFIG_PPP @@ -114,11 +108,9 @@ Index: linux-2.4.35.4/drivers/net/Config.in if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then dep_tristate ' PPP over Ethernet (EXPERIMENTAL)' CONFIG_PPPOE $CONFIG_PPP fi -Index: linux-2.4.35.4/drivers/net/Makefile -=================================================================== ---- linux-2.4.35.4.orig/drivers/net/Makefile 2007-12-15 05:19:42.110820796 +0100 -+++ linux-2.4.35.4/drivers/net/Makefile 2007-12-15 05:19:51.931380439 +0100 -@@ -166,6 +166,7 @@ +--- a/drivers/net/Makefile ++++ b/drivers/net/Makefile +@@ -166,6 +166,7 @@ obj-$(CONFIG_PPP_ASYNC) += ppp_async.o obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o obj-$(CONFIG_PPP_BSDCOMP) += bsd_comp.o @@ -126,10 +118,8 @@ Index: linux-2.4.35.4/drivers/net/Makefile obj-$(CONFIG_PPPOE) += pppox.o pppoe.o obj-$(CONFIG_SLIP) += slip.o -Index: linux-2.4.35.4/drivers/net/ppp_generic.c -=================================================================== ---- linux-2.4.35.4.orig/drivers/net/ppp_generic.c 2007-12-15 05:19:42.114821025 +0100 -+++ linux-2.4.35.4/drivers/net/ppp_generic.c 2007-12-15 05:19:51.931380439 +0100 +--- a/drivers/net/ppp_generic.c ++++ b/drivers/net/ppp_generic.c @@ -19,7 +19,7 @@ * PPP driver, written by Michael Callahan and Al Longyear, and * subsequently hacked by Paul Mackerras. @@ -139,7 +129,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c */ #include -@@ -102,6 +102,7 @@ +@@ -102,6 +102,7 @@ struct ppp { spinlock_t rlock; /* lock for receive side 58 */ spinlock_t wlock; /* lock for transmit side 5c */ int mru; /* max receive unit 60 */ @@ -147,7 +137,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c unsigned int flags; /* control bits 64 */ unsigned int xstate; /* transmit state bits 68 */ unsigned int rstate; /* receive state bits 6c */ -@@ -552,7 +553,9 @@ +@@ -552,7 +553,9 @@ static int ppp_ioctl(struct inode *inode case PPPIOCSMRU: if (get_user(val, (int *) arg)) break; @@ -158,7 +148,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c err = 0; break; -@@ -1025,14 +1028,37 @@ +@@ -1025,14 +1028,37 @@ ppp_send_frame(struct ppp *ppp, struct s case PPP_CCP: /* peek at outbound CCP frames */ ppp_ccp_peek(ppp, skb, 0); @@ -198,7 +188,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c if (new_skb == 0) { printk(KERN_ERR "PPP: no memory (comp pkt)\n"); goto drop; -@@ -1050,9 +1076,21 @@ +@@ -1050,9 +1076,21 @@ ppp_send_frame(struct ppp *ppp, struct s skb = new_skb; skb_put(skb, len); skb_pull(skb, 2); /* pull off A/C bytes */ @@ -221,7 +211,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c } } -@@ -1540,14 +1578,15 @@ +@@ -1540,14 +1578,15 @@ ppp_decompress_frame(struct ppp *ppp, st int len; if (proto == PPP_COMP) { @@ -239,7 +229,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c if (len < 0) { /* Pass the compressed frame to pppd as an error indication. */ -@@ -1573,7 +1612,14 @@ +@@ -1573,7 +1612,14 @@ ppp_decompress_frame(struct ppp *ppp, st return skb; err: @@ -255,7 +245,7 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c ppp_receive_error(ppp); return skb; } -@@ -2253,6 +2299,7 @@ +@@ -2253,6 +2299,7 @@ ppp_create_interface(int unit, int *retp /* Initialize the new ppp unit */ ppp->file.index = unit; ppp->mru = PPP_MRU; @@ -263,10 +253,8 @@ Index: linux-2.4.35.4/drivers/net/ppp_generic.c init_ppp_file(&ppp->file, INTERFACE); ppp->file.hdrlen = PPP_HDRLEN - 2; /* don't count proto bytes */ for (i = 0; i < NUM_NP; ++i) -Index: linux-2.4.35.4/drivers/net/ppp_mppe_mppc.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/drivers/net/ppp_mppe_mppc.c 2007-12-15 05:19:51.935380668 +0100 +--- /dev/null ++++ b/drivers/net/ppp_mppe_mppc.c @@ -0,0 +1,1312 @@ +/* + * ppp_mppe_mppc.c - MPPC/MPPE "compressor/decompressor" module. @@ -1580,10 +1568,8 @@ Index: linux-2.4.35.4/drivers/net/ppp_mppe_mppc.c +MODULE_AUTHOR("Jan Dubiec "); +MODULE_DESCRIPTION("MPPE/MPPC encryption/compression module for Linux"); +MODULE_LICENSE("Dual BSD/GPL"); -Index: linux-2.4.35.4/include/linux/ppp-comp.h -=================================================================== ---- linux-2.4.35.4.orig/include/linux/ppp-comp.h 2007-12-15 05:19:42.134822165 +0100 -+++ linux-2.4.35.4/include/linux/ppp-comp.h 2007-12-15 05:19:51.935380668 +0100 +--- a/include/linux/ppp-comp.h ++++ b/include/linux/ppp-comp.h @@ -28,7 +28,7 @@ */ @@ -1593,7 +1579,7 @@ Index: linux-2.4.35.4/include/linux/ppp-comp.h * * NOTE TO MAINTAINERS: * If you modify this file at all, please set the above date. -@@ -78,7 +78,7 @@ +@@ -78,7 +78,7 @@ struct compressor { /* Compress a packet */ int (*compress) (void *state, unsigned char *rptr, @@ -1602,7 +1588,7 @@ Index: linux-2.4.35.4/include/linux/ppp-comp.h /* Return compression statistics */ void (*comp_stat) (void *state, struct compstat *stats); -@@ -99,7 +99,7 @@ +@@ -99,7 +99,7 @@ struct compressor { /* Decompress a packet. */ int (*decompress) (void *state, unsigned char *ibuf, int isize, @@ -1611,7 +1597,7 @@ Index: linux-2.4.35.4/include/linux/ppp-comp.h /* Update state for an incompressible packet received */ void (*incomp) (void *state, unsigned char *ibuf, int icnt); -@@ -187,6 +187,42 @@ +@@ -187,6 +187,42 @@ struct compressor { #define DEFLATE_CHK_SEQUENCE 0 /*