]> git.ozlabs.org Git - ppp.git/blob - pppd/ccp.h
added ccp_fatal_error
[ppp.git] / pppd / ccp.h
1 /*
2  * ccp.h - Definitions for PPP Compression Control Protocol.
3  *
4  * $Id: ccp.h,v 1.1 1994/08/11 01:44:32 paulus Exp $
5  */
6
7 /*
8  * Compression algorithms = configuration options
9  */
10 #define CI_BSD_COMPRESS 0x21    /* BSD Compress */
11
12 /*
13  * Extra codes for CCP.
14  */
15 #define RESETREQ        14
16 #define RESETACK        15
17
18 typedef struct ccp_options {
19     u_short bsd_compress: 1;    /* do BSD Compress? */
20     u_short bsd_bits;           /* # bits/code for BSD Compress */
21 } ccp_options;
22
23 #define MIN_BSD_BITS    9
24 #define MAX_BSD_BITS    15
25
26 extern fsm ccp_fsm[];
27 extern ccp_options ccp_wantoptions[];
28 extern ccp_options ccp_gotoptions[];
29 extern ccp_options ccp_allowoptions[];
30 extern ccp_options ccp_hisoptions[];
31
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 *, ...)),
41                           void *arg));
42 void ccp_datainput __ARGS((int unit, u_char *pkt, int len));