X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=NeXT%2Fbsd-comp.c;h=02dc20c5c98349a7648bcc91dfaf72605c9b3e9d;hb=061ebeface7658cb2d76f9cc84dee16ba1e9b176;hp=0e3dd41f55c2be4344b6822844961c15de6e2d73;hpb=7554d5fef3f478ca0f9c8911522d7c1783989eae;p=ppp.git diff --git a/NeXT/bsd-comp.c b/NeXT/bsd-comp.c index 0e3dd41..02dc20c 100644 --- a/NeXT/bsd-comp.c +++ b/NeXT/bsd-comp.c @@ -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 @@ -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;