]> git.ozlabs.org Git - ppp.git/blobdiff - ultrix/bsd-comp.c
updated for 2.3 from netbsd stuff
[ppp.git] / ultrix / bsd-comp.c
index f129b3e07781afd8e08e244e97ca5d26f320946f..12bca928f04c3b5220b8e16c41cf82396ea9382c 100644 (file)
@@ -40,7 +40,7 @@
 /*
  * This version is for use with mbufs on Ultrix systems.
  *
- * $Id: bsd-comp.c,v 1.4 1995/05/01 01:41:29 paulus Exp $
+ * $Id: bsd-comp.c,v 1.6 1996/01/18 03:13:09 paulus Exp $
  */
 
 #include "../h/param.h"
@@ -129,7 +129,7 @@ struct bsd_db {
 };
 
 #define BSD_OVHD       2               /* BSD compress overhead/packet */
-#define BSD_INIT_BITS  MIN_BSD_BITS
+#define BSD_INIT_BITS  BSD_MIN_BITS
 
 static void    *bsd_comp_alloc __P((u_char *options, int opt_len));
 static void    *bsd_decomp_alloc __P((u_char *options, int opt_len));
@@ -416,7 +416,7 @@ bsd_init(db, options, opt_len, unit, hdrlen, mru, debug, decomp)
 {
     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