1/*	$NetBSD: ccp.h,v 1.1.1.1 2005/02/20 10:28:37 cube 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
35typedef 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
48extern fsm ccp_fsm[];
49extern ccp_options ccp_wantoptions[];
50extern ccp_options ccp_gotoptions[];
51extern ccp_options ccp_allowoptions[];
52extern ccp_options ccp_hisoptions[];
53
54extern struct protent ccp_protent;
55