Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
/* $Id: isdn_lzscomp.h,v 1.1 2004-01-28 15:25:44 giacomo Exp $
2
 *
3
 * Header for isdn_lzscomp.c
4
 * Concentrated here to not mess up half a dozen kernel headers with code
5
 * snippets
6
 *
7
 * This software may be used and distributed according to the terms
8
 * of the GNU General Public License, incorporated herein by reference.
9
 *
10
 */
11
 
12
#define CI_LZS_COMPRESS         17
13
#define CILEN_LZS_COMPRESS      5
14
 
15
#define LZS_CMODE_NONE          0
16
#define LZS_CMODE_LCB           1
17
#define LZS_CMODE_CRC           2
18
#define LZS_CMODE_SEQNO         3       /* MUST be implemented (default) */
19
#define LZS_CMODE_EXT           4       /* Seems to be what Win0.95 uses */
20
 
21
#define LZS_COMP_MAX_HISTS      1       /* Don't waste peers ressources */
22
#define LZS_COMP_DEF_HISTS      1       /* Most likely to negotiate */
23
#define LZS_DECOMP_MAX_HISTS    32      /* More is really nonsense */
24
#define LZS_DECOMP_DEF_HISTS    8       /* If we get it, this may be optimal */
25
 
26
#define LZS_HIST_BYTE1(word)    (word>>8)       /* Just for better reading */
27
#define LZS_HIST_BYTE2(word)    (word&0xff)     /* of this big endian stuff */
28
#define LZS_HIST_WORD(b1,b2)    ((b1<<8)|b2)    /* (network byte order rulez) */