dnscrypto-proxy: Support files updated.
[tomato.git] / release / src / router / pppd / pppd / ccp.h
blob43fe095a1d90f74b703b977cedcfabd62dc206b1
1 /*
2 * ccp.h - Definitions for PPP Compression Control Protocol.
4 * Copyright (c) 1994-2002 Paul Mackerras. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
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.
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>".
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.
30 * $Id: ccp.h,v 1.12 2004/11/04 10:02:26 paulus Exp $
33 typedef struct ccp_options {
34 bool bsd_compress; /* do BSD Compress? */
35 bool deflate; /* do Deflate? */
36 bool predictor_1; /* do Predictor-1? */
37 bool predictor_2; /* do Predictor-2? */
38 bool deflate_correct; /* use correct code for deflate? */
39 bool deflate_draft; /* use draft RFC code for deflate? */
40 bool lzs; /* do Stac LZS? */
41 bool mppc; /* do MPPC? */
42 bool mppe; /* do MPPE? */
43 bool mppe_40; /* allow 40 bit encryption? */
44 bool mppe_56; /* allow 56 bit encryption? */
45 bool mppe_128; /* allow 128 bit encryption? */
46 bool mppe_stateless; /* allow stateless encryption */
47 u_short bsd_bits; /* # bits/code for BSD Compress */
48 u_short deflate_size; /* lg(window size) for Deflate */
49 u_short lzs_mode; /* LZS check mode */
50 u_short lzs_hists; /* number of LZS histories */
51 short method; /* code for chosen compression method */
52 } ccp_options;
54 extern fsm ccp_fsm[];
55 extern ccp_options ccp_wantoptions[];
56 extern ccp_options ccp_gotoptions[];
57 extern ccp_options ccp_allowoptions[];
58 extern ccp_options ccp_hisoptions[];
60 extern struct protent ccp_protent;