Go to the documentation of this file.
10 #ifndef _NET_PPP_COMP_H
11 #define _NET_PPP_COMP_H
23 #ifndef DO_BSD_COMPRESS
24 #define DO_BSD_COMPRESS 1
29 #define DO_PREDICTOR_1 0
30 #define DO_PREDICTOR_2 0
40 void *(*comp_alloc) (
unsigned char *
options,
int opt_len);
47 int opt_len,
int unit,
int opthdr,
int debug);
54 unsigned char *obuf,
int isize,
int osize);
60 void *(*decomp_alloc) (
unsigned char *
options,
int opt_len);
67 int opt_len,
int unit,
int opthdr,
int mru,
75 unsigned char *obuf,
int osize);
101 #define DECOMP_ERROR -1
102 #define DECOMP_FATALERROR -2