SOURCES: ppp-2.4.3-mppe-mppc-1.1.patch - updated for 2.4.4

qboosh qboosh at pld-linux.org
Fri Jul 21 23:44:16 CEST 2006


Author: qboosh                       Date: Fri Jul 21 21:44:16 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 2.4.4

---- Files affected:
SOURCES:
   ppp-2.4.3-mppe-mppc-1.1.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch
diff -u SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch:1.1 SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch:1.2
--- SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch:1.1	Fri Feb 24 08:51:33 2006
+++ SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch	Fri Jul 21 23:44:11 2006
@@ -99,9 +99,8 @@
  /*
   * Definitions for other, as yet unsupported, compression methods.
   */
-diff -ruN ppp-2.4.3.orig/pppd/ccp.c ppp-2.4.3/pppd/ccp.c
---- ppp-2.4.3.orig/pppd/ccp.c	2004-11-13 03:28:15.000000000 +0100
-+++ ppp-2.4.3/pppd/ccp.c	2004-11-21 13:54:09.000000000 +0100
+--- ppp-2.4.4/pppd/ccp.c.orig	2005-07-09 02:23:05.000000000 +0200
++++ ppp-2.4.4/pppd/ccp.c	2006-07-21 23:34:12.121546000 +0200
 @@ -62,12 +62,10 @@
  static char bsd_value[8];
  static char deflate_value[8];
@@ -717,8 +716,8 @@
   */
  static int
  ccp_nakci(f, p, len, treat_as_reject)
-@@ -900,6 +1079,8 @@
-     int len;
+@@ -901,6 +1080,8 @@
+     int treat_as_reject;
  {
      ccp_options *go = &ccp_gotoptions[f->unit];
 +    ccp_options *ao = &ccp_allowoptions[f->unit];
@@ -726,7 +725,7 @@
      ccp_options no;		/* options we've seen already */
      ccp_options try;		/* options to ask for next time */
  
-@@ -907,28 +1088,100 @@
+@@ -908,28 +1089,100 @@
      try = *go;
  
  #ifdef MPPE
@@ -845,7 +844,7 @@
      if (go->deflate && len >= CILEN_DEFLATE
  	&& p[0] == (go->deflate_correct? CI_DEFLATE: CI_DEFLATE_DRAFT)
  	&& p[1] == CILEN_DEFLATE) {
-@@ -1001,14 +1254,50 @@
+@@ -1002,14 +1255,50 @@
  	return -1;
  
  #ifdef MPPE
@@ -900,7 +899,7 @@
      if (go->deflate_correct && len >= CILEN_DEFLATE
  	&& p[0] == CI_DEFLATE && p[1] == CILEN_DEFLATE) {
  	if (p[2] != DEFLATE_MAKE_OPT(go->deflate_size)
-@@ -1072,14 +1361,15 @@
+@@ -1073,14 +1362,15 @@
      int dont_nak;
  {
      int ret, newret, res;
@@ -920,7 +919,7 @@
  
      ret = CONFACK;
      retp = p0 = p;
-@@ -1102,103 +1392,305 @@
+@@ -1103,106 +1393,307 @@
  	    switch (type) {
  #ifdef MPPE
  	    case CI_MPPE:
@@ -1182,6 +1181,7 @@
  		    }
  		} else {
 -		    /* Neither are set. */
+-		    /* We cannot accept this.  */
 +		    /* MPPE is not compatible with other compression types */
 +		    if (wo->mppe) {
 +			ao->bsd_compress = 0;
@@ -1194,8 +1194,10 @@
 +		if ((!ho->mppc || !ao->mppc) && !ho->mppe) {
 +		    p[2] = p2;
 +		    p[5] = p5;
- 		    newret = CONFREJ;
- 		    break;
+ 		    newret = CONFNAK;
+ 		    /* Give the peer our idea of what can be used,
+ 		       so it can choose and confirm */
+ 		    ho->mppe = ao->mppe;
  		}
  
 -		/* rebuild the opts */
@@ -1298,7 +1300,7 @@
  	    case CI_DEFLATE:
  	    case CI_DEFLATE_DRAFT:
  		if (!ao->deflate || clen != CILEN_DEFLATE
-@@ -1340,12 +1832,6 @@
+@@ -1344,12 +1835,6 @@
  	else
  	    *lenp = retp - p0;
      }
@@ -1311,7 +1313,7 @@
      return ret;
  }
  
-@@ -1367,24 +1853,35 @@
+@@ -1371,24 +1856,35 @@
  	char *p = result;
  	char *q = result + sizeof(result); /* 1 past result */
  
@@ -1363,7 +1365,7 @@
      case CI_DEFLATE:
      case CI_DEFLATE_DRAFT:
  	if (opt2 != NULL && opt2->deflate_size != opt->deflate_size)
-@@ -1440,12 +1937,12 @@
+@@ -1444,12 +1940,12 @@
      } else if (ANY_COMPRESS(*ho))
  	notice("%s transmit compression enabled", method_name(ho, NULL));
  #ifdef MPPE
@@ -1378,7 +1380,7 @@
  }
  
  /*
-@@ -1468,7 +1965,7 @@
+@@ -1472,7 +1968,7 @@
  	    lcp_close(f->unit, "MPPE disabled");
  	}
      }
@@ -1387,7 +1389,7 @@
  }
  
  /*
-@@ -1528,24 +2025,28 @@
+@@ -1532,24 +2028,28 @@
  #ifdef MPPE
  	    case CI_MPPE:
  		if (optlen >= CILEN_MPPE) {
@@ -1428,7 +1430,7 @@
  	    case CI_DEFLATE:
  	    case CI_DEFLATE_DRAFT:
  		if (optlen >= CILEN_DEFLATE) {
-@@ -1631,6 +2132,7 @@
+@@ -1635,6 +2135,7 @@
  	    error("Lost compression sync: disabling compression");
  	    ccp_close(unit, "Lost compression sync");
  #ifdef MPPE
@@ -1436,7 +1438,7 @@
  	    /*
  	     * If we were doing MPPE, we must also take the link down.
  	     */
-@@ -1638,9 +2140,18 @@
+@@ -1642,9 +2143,18 @@
  		error("Too many MPPE errors, closing LCP");
  		lcp_close(unit, "Too many MPPE errors");
  	    }
@@ -1456,7 +1458,7 @@
  	     * Send a reset-request to reset the peer's compressor.
  	     * We don't do that if we are still waiting for an
  	     * acknowledgement to a previous reset-request.
-@@ -1671,4 +2182,3 @@
+@@ -1675,4 +2185,3 @@
      } else
  	ccp_localstate[f->unit] &= ~RACK_PENDING;
  }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ppp-2.4.3-mppe-mppc-1.1.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list