X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=ultrix%2Fbsd-comp.c;h=12bca928f04c3b5220b8e16c41cf82396ea9382c;hp=f129b3e07781afd8e08e244e97ca5d26f320946f;hb=35104970a907227262c863d2b31cc7fa72b47535;hpb=48fc486824e0d900f0cdbbd0a478ddc5ab33816d diff --git a/ultrix/bsd-comp.c b/ultrix/bsd-comp.c index f129b3e..12bca92 100644 --- a/ultrix/bsd-comp.c +++ b/ultrix/bsd-comp.c @@ -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