xref: /titanic_52/usr/src/cmd/cmd-inet/usr.bin/pppd/ccp.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * ccp.h - Definitions for PPP Compression Control Protocol.
3  *
4  * Copyright (c) 1994 The Australian National University.
5  * All rights reserved.
6  *
7  * Permission to use, copy, modify, and distribute this software and its
8  * documentation is hereby granted, provided that the above copyright
9  * notice appears in all copies.  This software is provided without any
10  * warranty, express or implied. The Australian National University
11  * makes no representations about the suitability of this software for
12  * any purpose.
13  *
14  * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
15  * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
16  * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
17  * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
18  * OF SUCH DAMAGE.
19  *
20  * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
21  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
23  * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
24  * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
25  * OR MODIFICATIONS.
26  *
27  * $Id: ccp.h,v 1.9 1998/11/07 06:59:26 paulus Exp $
28  */
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 typedef struct ccp_options {
33     bool bsd_compress;		/* do BSD Compress? */
34     bool deflate;		/* do Deflate? */
35     bool predictor_1;		/* do Predictor-1? */
36     bool predictor_2;		/* do Predictor-2? */
37     bool deflate_correct;	/* use correct code for deflate? */
38     bool deflate_draft;		/* use draft RFC code for deflate? */
39     u_short bsd_bits;		/* # bits/code for BSD Compress */
40     u_short deflate_size;	/* lg(window size) for Deflate */
41     short method;		/* code for chosen compression method */
42 } ccp_options;
43 
44 extern fsm ccp_fsm[];
45 extern ccp_options ccp_wantoptions[];
46 extern ccp_options ccp_gotoptions[];
47 extern ccp_options ccp_allowoptions[];
48 extern ccp_options ccp_hisoptions[];
49 
50 extern struct protent ccp_protent;
51