]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ccp.h
MD4Update takes bytes not bits! Now the regression test of the README.MSCHAP80
[ppp.git] / pppd / ccp.h
index 95a1b232b9e104ba8b9251b9f4edf5b2f9d67fe3..c28a5b885a65c629e4249a477883e64e7b701675 100644 (file)
  * 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.9 1998/11/07 06:59:26 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? */
+    bool bsd_compress;         /* do BSD Compress? */
+    bool deflate;              /* do Deflate? */
+    bool predictor_1;          /* do Predictor-1? */
+    bool predictor_2;          /* do Predictor-2? */
+    bool deflate_correct;      /* use correct code for deflate? */
+    bool deflate_draft;                /* use draft RFC code for deflate? */
     u_short bsd_bits;          /* # bits/code for BSD Compress */
+    u_short deflate_size;      /* lg(window size) for Deflate */
+    short method;              /* code for chosen compression method */
 } 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[];
 extern ccp_options ccp_allowoptions[];
 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_lowerup __P((int unit));
-void ccp_lowerdown __P((int));
-void ccp_input __P((int unit, u_char *pkt, int len));
-void ccp_protrej __P((int unit));
-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;