X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fbsd_comp.c;fp=linux%2Fbsd_comp.c;h=bab6561e3100cd1517481fc7141d83eccd07aec9;hp=bb523bd240e91242caec2bad24fa4a6ac298b5df;hb=6589bd3bbe86761cc41767a1400a69bbc985788a;hpb=43047c8a5e7896451e966a0051ed48fe66b4561c;ds=sidebyside diff --git a/linux/bsd_comp.c b/linux/bsd_comp.c index bb523bd..bab6561 100644 --- a/linux/bsd_comp.c +++ b/linux/bsd_comp.c @@ -37,9 +37,9 @@ */ /* - * This version is for use with contigious buffers on Linux-derived systems. + * This version is for use with contiguous buffers on Linux-derived systems. * - * ==FILEVERSION 5== + * ==FILEVERSION 4== * * NOTE TO MAINTAINERS: * If you modify this file at all, increment the number above. @@ -49,7 +49,7 @@ * install a new bsd_comp.c file. Don't change the format of that * line otherwise, so the installation script can recognize it. * - * $Id: bsd_comp.c,v 1.3 1996/01/18 03:12:47 paulus Exp $ + * From: bsd_comp.c,v 1.3 1994/12/08 01:59:58 paulus Exp */ #ifndef MODULE @@ -78,7 +78,7 @@ #include #include -#include +#include #include #include @@ -92,9 +92,9 @@ #include #endif -#include -#include -#include +#include +#include +#include #undef PACKETPTR #define PACKETPTR 1 @@ -501,9 +501,7 @@ static int bsd_init (void *state, unsigned char *options, struct bsd_db *db = state; int indx; - if ((opt_len < CILEN_BSD_COMPRESS) - || (options[0] != CI_BSD_COMPRESS) - || (options[1] != CILEN_BSD_COMPRESS) + if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3) || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION) || (BSD_NBITS(options[2]) != db->maxbits) || (decomp && db->lens == NULL))