/*
* 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"
};
#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));
{
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