]> git.ozlabs.org Git - ppp.git/commitdiff
Allow other CCP options to follow
authorPaul Mackerras <paulus@samba.org>
Thu, 18 Jan 1996 03:13:09 +0000 (03:13 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 18 Jan 1996 03:13:09 +0000 (03:13 +0000)
NeXT/bsd-comp.c
freebsd-2.0/bsd-comp.c
linux/bsd_comp.c
modules/bsd-comp.c
netbsd-1.1/bsd-comp.c
ultrix/bsd-comp.c

index 0e3dd41f55c2be4344b6822844961c15de6e2d73..1124855d6fee8dc692873c0b39eaa13e25a7ddac 100644 (file)
@@ -49,7 +49,7 @@
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
- * $Id: bsd-comp.c,v 1.1 1995/12/18 03:30:00 paulus Exp $
+ * $Id: bsd-comp.c,v 1.2 1996/01/18 03:12:26 paulus Exp $
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -459,7 +459,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     int i;
 
 {
     int i;
 
-    if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
+    if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
index e34c32a2aa006e00ac5b59f333592fda8fb2634e..d128e0c0e2d8e6dd90db7d1cadbd289e88a94908 100644 (file)
@@ -40,7 +40,7 @@
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
- * $Id: bsd-comp.c,v 1.1 1995/10/27 03:35:14 paulus Exp $
+ * $Id: bsd-comp.c,v 1.2 1996/01/18 03:12:35 paulus Exp $
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -406,7 +406,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     int i;
 
 {
     int i;
 
-    if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
+    if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
index 508db4f622296ecea590c8a71467785b57e99b94..bb523bd240e91242caec2bad24fa4a6ac298b5df 100644 (file)
@@ -49,7 +49,7 @@
  *     install a new bsd_comp.c file. Don't change the format of that
  *     line otherwise, so the installation script can recognize it.
  *
  *     install a new bsd_comp.c file. Don't change the format of that
  *     line otherwise, so the installation script can recognize it.
  *
- * $Id: bsd_comp.c,v 1.2 1995/12/18 03:37:05 paulus Exp $
+ * $Id: bsd_comp.c,v 1.3 1996/01/18 03:12:47 paulus Exp $
  */
 
 #ifndef MODULE
  */
 
 #ifndef MODULE
@@ -501,7 +501,9 @@ static int bsd_init (void *state, unsigned char *options,
     struct bsd_db *db = state;
     int indx;
     
     struct bsd_db *db = state;
     int indx;
     
-    if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3)
+    if ((opt_len < CILEN_BSD_COMPRESS)
+       || (options[0] != CI_BSD_COMPRESS)
+       || (options[1] != CILEN_BSD_COMPRESS)
        || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
        || (BSD_NBITS(options[2]) != db->maxbits)
        || (decomp && db->lens == NULL))
        || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
        || (BSD_NBITS(options[2]) != db->maxbits)
        || (decomp && db->lens == NULL))
index a9cf15be8f4a56faf9d4683e509c394c03d7fcf7..d9e9fe9f1a7764c85cb8a5ce5c38116fd1f95201 100644 (file)
@@ -41,7 +41,7 @@
  * This version is for use with STREAMS under SunOS 4.x,
  * DEC Alpha OSF/1, AIX 4.x, and SVR4 systems including Solaris 2.
  *
  * This version is for use with STREAMS under SunOS 4.x,
  * DEC Alpha OSF/1, AIX 4.x, and SVR4 systems including Solaris 2.
  *
- * $Id: bsd-comp.c,v 1.17 1995/12/11 02:57:48 paulus Exp $
+ * $Id: bsd-comp.c,v 1.18 1996/01/18 03:12:53 paulus Exp $
  */
 
 #ifdef AIX4
  */
 
 #ifdef AIX4
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/stream.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/stream.h>
-#include <sys/socket.h>
-#include <net/if.h>
 #include <net/ppp_defs.h>
 #include <net/ppp_defs.h>
-#include <net/ppp_str.h>
 #include "ppp_mod.h"
 
 #ifdef SVR4
 #include "ppp_mod.h"
 
 #ifdef SVR4
@@ -422,7 +419,8 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     int i;
 
 {
     int i;
 
-    if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3
+    if (opt_len < CILEN_BSD_COMPRESS
+       || options[0] != CI_BSD_COMPRESS || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || decomp && db->lens == NULL)
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || decomp && db->lens == NULL)
index a86183beb1b0b2245f0c7e4c70d7f72abb1cd7ab..7a66ac5cc9b3c5d99bea9c3ddd89cf6df518d4b6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: bsd-comp.c,v 1.1 1995/12/11 05:17:05 paulus Exp $  */
+/*     $Id: bsd-comp.c,v 1.2 1996/01/18 03:13:03 paulus Exp $  */
 
 /* Because this code is derived from the 4.3BSD compress source:
  *
 
 /* Because this code is derived from the 4.3BSD compress source:
  *
@@ -42,7 +42,7 @@
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
 /*
  * This version is for use with mbufs on BSD-derived systems.
  *
- * $Id: bsd-comp.c,v 1.1 1995/12/11 05:17:05 paulus Exp $
+ * $Id: bsd-comp.c,v 1.2 1996/01/18 03:13:03 paulus Exp $
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -309,7 +309,7 @@ bsd_alloc(options, opt_len, decomp)
     u_int newlen, hsize, hshift, maxmaxcode;
     struct bsd_db *db;
 
     u_int newlen, hsize, hshift, maxmaxcode;
     struct bsd_db *db;
 
-    if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
+    if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
        return NULL;
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
        return NULL;
@@ -407,7 +407,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     int i;
 
 {
     int i;
 
-    if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
+    if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
index 933a5cc4dd5c212ee9f6cd3c06050289ab8802cb..12bca928f04c3b5220b8e16c41cf82396ea9382c 100644 (file)
@@ -40,7 +40,7 @@
 /*
  * This version is for use with mbufs on Ultrix systems.
  *
 /*
  * This version is for use with mbufs on Ultrix systems.
  *
- * $Id: bsd-comp.c,v 1.5 1995/05/02 02:48:14 paulus Exp $
+ * $Id: bsd-comp.c,v 1.6 1996/01/18 03:13:09 paulus Exp $
  */
 
 #include "../h/param.h"
  */
 
 #include "../h/param.h"
@@ -416,7 +416,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     int i;
 
 {
     int i;
 
-    if (opt_len != CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
+    if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits
        || options[1] != CILEN_BSD_COMPRESS
        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
        || BSD_NBITS(options[2]) != db->maxbits