|
1586
|
1 //========================================================================== |
|
|
2 // |
|
|
3 // include/ccp.h |
|
|
4 // |
|
|
5 //========================================================================== |
|
|
6 //####ECOSGPLCOPYRIGHTBEGIN#### |
|
|
7 // ------------------------------------------- |
|
|
8 // This file is part of eCos, the Embedded Configurable Operating System. |
|
|
9 // Portions created by Nick Garnett are |
|
|
10 // Copyright (C) 2003 eCosCentric Ltd. |
|
|
11 // |
|
|
12 // eCos is free software; you can redistribute it and/or modify it under |
|
|
13 // the terms of the GNU General Public License as published by the Free |
|
|
14 // Software Foundation; either version 2 or (at your option) any later version. |
|
|
15 // |
|
|
16 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
|
|
17 // WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
|
18 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
|
19 // for more details. |
|
|
20 // |
|
|
21 // You should have received a copy of the GNU General Public License along |
|
|
22 // with eCos; if not, write to the Free Software Foundation, Inc., |
|
|
23 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
|
24 // |
|
|
25 // As a special exception, if other files instantiate templates or use macros |
|
|
26 // or inline functions from this file, or you compile this file and link it |
|
|
27 // with other works to produce a work based on this file, this file does not |
|
|
28 // by itself cause the resulting work to be covered by the GNU General Public |
|
|
29 // License. However the source code for this file must still be made available |
|
|
30 // in accordance with section (3) of the GNU General Public License. |
|
|
31 // |
|
|
32 // This exception does not invalidate any other reasons why a work based on |
|
|
33 // this file might be covered by the GNU General Public License. |
|
|
34 // |
|
|
35 // ------------------------------------------- |
|
|
36 //####ECOSGPLCOPYRIGHTEND#### |
|
|
37 //####BSDCOPYRIGHTBEGIN#### |
|
|
38 // |
|
|
39 // ------------------------------------------- |
|
|
40 // |
|
|
41 // Portions of this software may have been derived from OpenBSD, |
|
|
42 // FreeBSD or other sources, and are covered by the appropriate |
|
|
43 // copyright disclaimers included herein. |
|
|
44 // |
|
|
45 // ------------------------------------------- |
|
|
46 // |
|
|
47 //####BSDCOPYRIGHTEND#### |
|
|
48 //========================================================================== |
|
|
49 |
|
|
50 /* |
|
|
51 * ccp.h - Definitions for PPP Compression Control Protocol. |
|
|
52 * |
|
|
53 * Copyright (c) 1994 The Australian National University. |
|
|
54 * All rights reserved. |
|
|
55 * |
|
|
56 * Permission to use, copy, modify, and distribute this software and its |
|
|
57 * documentation is hereby granted, provided that the above copyright |
|
|
58 * notice appears in all copies. This software is provided without any |
|
|
59 * warranty, express or implied. The Australian National University |
|
|
60 * makes no representations about the suitability of this software for |
|
|
61 * any purpose. |
|
|
62 * |
|
|
63 * IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY |
|
|
64 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
|
|
65 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF |
|
|
66 * THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY |
|
|
67 * OF SUCH DAMAGE. |
|
|
68 * |
|
|
69 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES, |
|
|
70 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
|
|
71 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
|
|
72 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO |
|
|
73 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, |
|
|
74 * OR MODIFICATIONS. |
|
|
75 * |
|
|
76 * $FreeBSD: src/usr.sbin/pppd/ccp.h,v 1.8 1999/08/28 01:19:00 peter Exp $ |
|
|
77 */ |
|
|
78 |
|
|
79 typedef struct ccp_options { |
|
|
80 u_int bsd_compress: 1; /* do BSD Compress? */ |
|
|
81 u_int deflate: 1; /* do Deflate? (RFC code) */ |
|
|
82 u_int baddeflate: 1; /* do Deflate? (Magnalink!) */ |
|
|
83 u_int predictor_1: 1; /* do Predictor-1? */ |
|
|
84 u_int predictor_2: 1; /* do Predictor-2? */ |
|
|
85 u_int deflate_correct: 1; /* use correct code for deflate? */ |
|
|
86 u_int deflate_draft: 1; /* use draft RFC code for deflate? */ |
|
|
87 u_short bsd_bits; /* # bits/code for BSD Compress */ |
|
|
88 u_short deflate_size; /* lg(window size) for Deflate */ |
|
|
89 u_short baddeflate_size; /* lg(window size) for Deflate */ |
|
|
90 short method; /* code for chosen compression method */ |
|
|
91 } ccp_options; |
|
|
92 |
|
|
93 extern fsm ccp_fsm[]; |
|
|
94 extern ccp_options ccp_wantoptions[]; |
|
|
95 extern ccp_options ccp_gotoptions[]; |
|
|
96 extern ccp_options ccp_allowoptions[]; |
|
|
97 extern ccp_options ccp_hisoptions[]; |
|
|
98 |
|
|
99 extern struct protent ccp_protent; |