X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fccp.h;h=9bcac4a99757ea95804b46246952dc4f6e88c82e;hp=95a1b232b9e104ba8b9251b9f4edf5b2f9d67fe3;hb=749fb47579076eda0d3c9bf594f12e6f84f85cae;hpb=a3396b002507d72b3e1f1169bd02ae018539654b diff --git a/pppd/ccp.h b/pppd/ccp.h index 95a1b23..9bcac4a 100644 --- a/pppd/ccp.h +++ b/pppd/ccp.h @@ -24,28 +24,18 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: ccp.h,v 1.2 1994/09/21 06:47:37 paulus Exp $ + * $Id: ccp.h,v 1.6 1995/12/18 03:44:41 paulus Exp $ */ -/* - * Compression algorithms = configuration options - */ -#define CI_BSD_COMPRESS 0x21 /* BSD Compress */ - -/* - * Extra codes for CCP. - */ -#define RESETREQ 14 -#define RESETACK 15 - typedef struct ccp_options { - u_short bsd_compress: 1; /* do BSD Compress? */ + u_int bsd_compress: 1; /* do BSD Compress? */ + u_int deflate: 1; /* do Deflate? */ + u_int predictor_1: 1; /* do Predictor-1? */ + u_int predictor_2: 1; /* do Predictor-2? */ u_short bsd_bits; /* # bits/code for BSD Compress */ + u_short deflate_size; /* lg(window size) for Deflate */ } ccp_options; -#define MIN_BSD_BITS 9 -#define MAX_BSD_BITS 15 - extern fsm ccp_fsm[]; extern ccp_options ccp_wantoptions[]; extern ccp_options ccp_gotoptions[]; @@ -54,7 +44,7 @@ extern ccp_options ccp_hisoptions[]; void ccp_init __P((int unit)); void ccp_open __P((int unit)); -void ccp_close __P((int unit)); +void ccp_close __P((int unit, char *)); void ccp_lowerup __P((int unit)); void ccp_lowerdown __P((int)); void ccp_input __P((int unit, u_char *pkt, int len)); @@ -63,3 +53,5 @@ int ccp_printpkt __P((u_char *pkt, int len, void (*printer) __P((void *, char *, ...)), void *arg)); void ccp_datainput __P((int unit, u_char *pkt, int len)); + +extern struct protent ccp_protent;