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