1 /*
2 * $Id: isdn_lzscomp.h,v 1.1 1998/07/08 16:52:33 hipp Exp $
3 *
4 * Header for isdn_lzscomp.c
5 * Concentrated here to not mess up half a dozen kernel headers with code
6 * snippets
7 *
8 */
9
10 #define CI_LZS_COMPRESS 17
11 #define CILEN_LZS_COMPRESS 5
12
13 #define LZS_CMODE_NONE 0
14 #define LZS_CMODE_LCB 1
15 #define LZS_CMODE_CRC 2
16 #define LZS_CMODE_SEQNO 3 /* MUST be implemented (default) */
17 #define LZS_CMODE_EXT 4 /* Seems to be what Win0.95 uses */
18
19 #define LZS_COMP_MAX_HISTS 1 /* Don't waste peers ressources */
20 #define LZS_COMP_DEF_HISTS 1 /* Most likely to negotiate */
21 #define LZS_DECOMP_MAX_HISTS 32 /* More is really nonsense */
22 #define LZS_DECOMP_DEF_HISTS 8 /* If we get it, this may be optimal */
23
24 #define LZS_HIST_BYTE1(word) (word>>8) /* Just for better reading */
25 #define LZS_HIST_BYTE2(word) (word&0xff) /* of this big endian stuff */
26 #define LZS_HIST_WORD(b1,b2) ((b1<<8)|b2) /* (network byte order rulez) */
27
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.