patch-include_net_ppp-comp_h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- ppp-2.4.4.orig/include/net/ppp-comp.h 2002-12-06 10:49:15.000000000 +0100
  2. +++ ppp-2.4.4/include/net/ppp-comp.h 2009-06-05 19:12:00.000000000 +0200
  3. @@ -255,6 +255,33 @@ struct compressor {
  4. opts |= MPPE_OPT_UNKNOWN; \
  5. } while (/* CONSTCOND */ 0)
  6. +/* MPPE/MPPC definitions by J.D.*/
  7. +#define MPPE_STATELESS MPPE_H_BIT /* configuration bit H */
  8. +#define MPPE_40BIT MPPE_L_BIT /* configuration bit L */
  9. +#define MPPE_56BIT MPPE_M_BIT /* configuration bit M */
  10. +#define MPPE_128BIT MPPE_S_BIT /* configuration bit S */
  11. +#define MPPE_MPPC MPPE_C_BIT /* configuration bit C */
  12. +
  13. +/*
  14. + * Definitions for Stac LZS.
  15. + */
  16. +
  17. +#define CI_LZS 17 /* config option for Stac LZS */
  18. +#define CILEN_LZS 5 /* length of config option */
  19. +
  20. +#define LZS_OVHD 4 /* max. LZS overhead */
  21. +#define LZS_HIST_LEN 2048 /* LZS history size */
  22. +#define LZS_MAX_CCOUNT 0x0FFF /* max. coherency counter value */
  23. +
  24. +#define LZS_MODE_NONE 0
  25. +#define LZS_MODE_LCB 1
  26. +#define LZS_MODE_CRC 2
  27. +#define LZS_MODE_SEQ 3
  28. +#define LZS_MODE_EXT 4
  29. +
  30. +#define LZS_EXT_BIT_FLUSHED 0x80 /* bit A */
  31. +#define LZS_EXT_BIT_COMP 0x20 /* bit C */
  32. +
  33. /*
  34. * Definitions for other, as yet unsupported, compression methods.
  35. */