xref: /netbsd-src/external/bsd/ppp/dist/pppd/ccp.h (revision e89934bbf778a6d6d6894877c4da59d0c7835b0f)
1 /*	$NetBSD: ccp.h,v 1.4 2014/10/25 21:11:37 christos Exp $	*/
2 
3 /*
4  * ccp.h - Definitions for PPP Compression Control Protocol.
5  *
6  * Copyright (c) 1994-2002 Paul Mackerras. All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  *
15  * 2. The name(s) of the authors of this software must not be used to
16  *    endorse or promote products derived from this software without
17  *    prior written permission.
18  *
19  * 3. Redistributions of any form whatsoever must retain the following
20  *    acknowledgment:
21  *    "This product includes software developed by Paul Mackerras
22  *     <paulus@samba.org>".
23  *
24  * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
25  * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
26  * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
27  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
28  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
29  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
30  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
31  *
32  * Id: ccp.h,v 1.12 2004/11/04 10:02:26 paulus Exp
33  */
34 
35 typedef struct ccp_options {
36     bool bsd_compress;		/* do BSD Compress? */
37     bool deflate;		/* do Deflate? */
38     bool predictor_1;		/* do Predictor-1? */
39     bool predictor_2;		/* do Predictor-2? */
40     bool deflate_correct;	/* use correct code for deflate? */
41     bool deflate_draft;		/* use draft RFC code for deflate? */
42     u_short mppe;		/* do MPPE? */
43     u_short bsd_bits;		/* # bits/code for BSD Compress */
44     u_short deflate_size;	/* lg(window size) for Deflate */
45     short method;		/* code for chosen compression method */
46 } ccp_options;
47 
48 extern fsm ccp_fsm[];
49 extern ccp_options ccp_wantoptions[];
50 extern ccp_options ccp_gotoptions[];
51 extern ccp_options ccp_allowoptions[];
52 extern ccp_options ccp_hisoptions[];
53 
54 extern struct protent ccp_protent;
55