1
0

patch-include_linux_ppp-comp_h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --- ppp-2.4.4.orig/include/linux/ppp-comp.h 2002-12-06 10:49:15.000000000 +0100
  2. +++ ppp-2.4.4/include/linux/ppp-comp.h 2009-06-05 19:12:00.000000000 +0200
  3. @@ -36,7 +36,7 @@
  4. */
  5. /*
  6. - * ==FILEVERSION 20020319==
  7. + * ==FILEVERSION 20020715==
  8. *
  9. * NOTE TO MAINTAINERS:
  10. * If you modify this file at all, please set the above date.
  11. @@ -86,7 +86,7 @@ struct compressor {
  12. /* Compress a packet */
  13. int (*compress) (void *state, unsigned char *rptr,
  14. - unsigned char *obuf, int isize, int osize);
  15. + unsigned char *obuf, int isize, int osize);
  16. /* Return compression statistics */
  17. void (*comp_stat) (void *state, struct compstat *stats);
  18. @@ -107,7 +107,7 @@ struct compressor {
  19. /* Decompress a packet. */
  20. int (*decompress) (void *state, unsigned char *ibuf, int isize,
  21. - unsigned char *obuf, int osize);
  22. + unsigned char *obuf, int osize);
  23. /* Update state for an incompressible packet received */
  24. void (*incomp) (void *state, unsigned char *ibuf, int icnt);
  25. @@ -288,6 +288,33 @@ struct compressor {
  26. opts |= MPPE_OPT_UNKNOWN; \
  27. } while (/* CONSTCOND */ 0)
  28. +/* MPPE/MPPC definitions by J.D.*/
  29. +#define MPPE_STATELESS MPPE_H_BIT /* configuration bit H */
  30. +#define MPPE_40BIT MPPE_L_BIT /* configuration bit L */
  31. +#define MPPE_56BIT MPPE_M_BIT /* configuration bit M */
  32. +#define MPPE_128BIT MPPE_S_BIT /* configuration bit S */
  33. +#define MPPE_MPPC MPPE_C_BIT /* configuration bit C */
  34. +
  35. +/*
  36. + * Definitions for Stac LZS.
  37. + */
  38. +
  39. +#define CI_LZS 17 /* config option for Stac LZS */
  40. +#define CILEN_LZS 5 /* length of config option */
  41. +
  42. +#define LZS_OVHD 4 /* max. LZS overhead */
  43. +#define LZS_HIST_LEN 2048 /* LZS history size */
  44. +#define LZS_MAX_CCOUNT 0x0FFF /* max. coherency counter value */
  45. +
  46. +#define LZS_MODE_NONE 0
  47. +#define LZS_MODE_LCB 1
  48. +#define LZS_MODE_CRC 2
  49. +#define LZS_MODE_SEQ 3
  50. +#define LZS_MODE_EXT 4
  51. +
  52. +#define LZS_EXT_BIT_FLUSHED 0x80 /* bit A */
  53. +#define LZS_EXT_BIT_COMP 0x20 /* bit C */
  54. +
  55. /*
  56. * Definitions for other, as yet unsupported, compression methods.
  57. */