]> git.ozlabs.org Git - ppp.git/blob - pppd/ccp.h
CI: Updated the 'checkout' actions that were using Node.js 16 to Node.js 20. (#489)
[ppp.git] / pppd / ccp.h
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. The name(s) of the authors of this software must not be used to
14  *    endorse or promote products derived from this software without
15  *    prior written permission.
16  *
17  * 3. Redistributions of any form whatsoever must retain the following
18  *    acknowledgment:
19  *    "This product includes software developed by Paul Mackerras
20  *     <paulus@samba.org>".
21  *
22  * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
23  * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24  * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
25  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
26  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
27  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
28  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29  *
30  * $Id: ccp.h,v 1.12 2004/11/04 10:02:26 paulus Exp $
31  */
32 #ifndef PPP_CCP_H
33 #define PPP_CCP_H
34
35 #include "pppdconf.h"
36
37 typedef struct ccp_options {
38     bool bsd_compress;          /* do BSD Compress? */
39     bool deflate;               /* do Deflate? */
40     bool predictor_1;           /* do Predictor-1? */
41     bool predictor_2;           /* do Predictor-2? */
42     bool deflate_correct;       /* use correct code for deflate? */
43     bool deflate_draft;         /* use draft RFC code for deflate? */
44     unsigned char mppe;         /* MPPE bitfield */
45     unsigned short bsd_bits;            /* # bits/code for BSD Compress */
46     unsigned short deflate_size;        /* lg(window size) for Deflate */
47     short method;               /* code for chosen compression method */
48 } ccp_options;
49
50 extern fsm ccp_fsm[];
51 extern ccp_options ccp_wantoptions[];
52 extern ccp_options ccp_gotoptions[];
53 extern ccp_options ccp_allowoptions[];
54 extern ccp_options ccp_hisoptions[];
55
56 extern struct protent ccp_protent;
57
58 #endif