]> git.ozlabs.org Git - ppp.git/blobdiff - NeXT/bsd-comp.c
*** empty log message ***
[ppp.git] / NeXT / bsd-comp.c
index 0e3dd41f55c2be4344b6822844961c15de6e2d73..02dc20c5c98349a7648bcc91dfaf72605c9b3e9d 100644 (file)
@@ -49,7 +49,7 @@
 /*
  * 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.3 1996/09/14 05:08:26 paulus Exp $
  */
 
 #include <sys/param.h>
@@ -245,7 +245,6 @@ bsd_clear(db)
     db->ratio = 0;
     db->bytes_out = 0;
     db->in_count = 0;
-    db->incomp_count = 0;
     db->checkpoint = CHECK_GAP;
 }
 
@@ -459,7 +458,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
@@ -734,7 +733,6 @@ bsd_incomp(state, dmsg)
     if (ent < CI_BSD_COMPRESS || ent > 0xf9)
        return;
 
-    db->incomp_count++;
     db->seqno++;
     ilen = 1;          /* count the protocol as 1 byte */
     rptr += PPP_HDRLEN;