123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- --- ppp-2.4.4.orig/include/linux/ppp-comp.h 2002-12-06 10:49:15.000000000 +0100
- +++ ppp-2.4.4/include/linux/ppp-comp.h 2009-06-05 19:12:00.000000000 +0200
- @@ -36,7 +36,7 @@
- */
-
-
- int (*compress) (void *state, unsigned char *rptr,
- - unsigned char *obuf, int isize, int osize);
- + unsigned char *obuf, int isize, int osize);
-
-
- void (*comp_stat) (void *state, struct compstat *stats);
- @@ -107,7 +107,7 @@ struct compressor {
-
-
- int (*decompress) (void *state, unsigned char *ibuf, int isize,
- - unsigned char *obuf, int osize);
- + unsigned char *obuf, int osize);
-
-
- void (*incomp) (void *state, unsigned char *ibuf, int icnt);
- @@ -288,6 +288,33 @@ struct compressor {
- opts |= MPPE_OPT_UNKNOWN; \
- } while ( 0)
-
- +
- +#define MPPE_STATELESS MPPE_H_BIT
- +#define MPPE_40BIT MPPE_L_BIT
- +#define MPPE_56BIT MPPE_M_BIT
- +#define MPPE_128BIT MPPE_S_BIT
- +#define MPPE_MPPC MPPE_C_BIT
- +
- +
- +
- +#define CI_LZS 17
- +#define CILEN_LZS 5
- +
- +#define LZS_OVHD 4
- +#define LZS_HIST_LEN 2048
- +#define LZS_MAX_CCOUNT 0x0FFF
- +
- +#define LZS_MODE_NONE 0
- +#define LZS_MODE_LCB 1
- +#define LZS_MODE_CRC 2
- +#define LZS_MODE_SEQ 3
- +#define LZS_MODE_EXT 4
- +
- +#define LZS_EXT_BIT_FLUSHED 0x80
- +#define LZS_EXT_BIT_COMP 0x20
- +
-
|