2 * ccp.h - Definitions for PPP Compression Control Protocol.
4 * $Id: ccp.h,v 1.1 1994/08/11 01:44:32 paulus Exp $
8 * Compression algorithms = configuration options
10 #define CI_BSD_COMPRESS 0x21 /* BSD Compress */
13 * Extra codes for CCP.
18 typedef struct ccp_options {
19 u_short bsd_compress: 1; /* do BSD Compress? */
20 u_short bsd_bits; /* # bits/code for BSD Compress */
23 #define MIN_BSD_BITS 9
24 #define MAX_BSD_BITS 15
27 extern ccp_options ccp_wantoptions[];
28 extern ccp_options ccp_gotoptions[];
29 extern ccp_options ccp_allowoptions[];
30 extern ccp_options ccp_hisoptions[];
32 void ccp_init __ARGS((int unit));
33 void ccp_open __ARGS((int unit));
34 void ccp_close __ARGS((int unit));
35 void ccp_lowerup __ARGS((int unit));
36 void ccp_lowerdown __ARGS((int));
37 void ccp_input __ARGS((int unit, u_char *pkt, int len));
38 void ccp_protrej __ARGS((int unit));
39 int ccp_printpkt __ARGS((u_char *pkt, int len,
40 void (*printer) __ARGS((void *, char *, ...)),
42 void ccp_datainput __ARGS((int unit, u_char *pkt, int len));